How to convert a date string to a date? #2129
-
I want to pass a string that's formatted as a date (e.g. '10/21/2020') and return a DATE object. I thought toDate would do it, but it seems to only accept dates and numbers. I thought Parse might do it, but I don't understand the documentation. It seems this should be a common need. How can I do it? |
Beta Was this translation helpful? Give feedback.
Answered by
efenderbosch
Jan 6, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zmagickap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parse('10/21/2020', 'dd-MM-yyyy', 0)