The World’s Largest Online Community for Developers
I'm trying to read a file using csvtojson module. Date field is getting read as "05-23-2020" & next date is "23-03-2020" . Format which I should use is dd-mm-yyyy. But here in the backend if I try to convert the follwing date "23-03-2020" using
I'm getting as invalid date. But for this date "05-23-2020" , I can get the value.
How can I solve this issue?. New Date will only accept the date string in mm-dd-yyyy format. Can anyone please help me with this?