-2

I have string value like "26-APR-2019 16:40". I want to convert this in to date time in java script. Please help me.

user1463065
  • 563
  • 2
  • 11
  • 30

1 Answers1

0

You can't use the Date.parse() function to parse your string into a date object. Your string is not compatible with this function you will have to parse the sting manually with some switch case operations.