Im trying to parse a timestamp string to date object, but it keeps telling me its an invalid date.
Mon Jun 21 10:14:54 CEST 2021
Where new Date('Mon Jun 21 10:14:54 CEST 2021') return an invalid date error. Date.parse and toDate also return the same error. I used http://natty.joestelmach.com/try.jsp# to test if an online parser was able to recognize it and it did. What can be wrong here?