Forum Discussion

Cleo-Juniper's avatar
Cleo-Juniper
New Contributor
7 months ago

Parse date from string without format

I need to parse string into a date. I know the string is a date. I don't care about the formatting. I've tried

Date.parse(myDateString)

But it seems to want the format of the date. Is there any way I can parse the date without the code being aware of the format?

No RepliesBe the first to reply