parseDate
Modified on Thu, 24 Aug 2023
Description
Use this function to convert a string to a date using a specified format.
Syntax
parseDate(dateString, format)
Returns
Return Value | Description |
---|---|
Date | Returns a Date object representing the converted date. |
Sample
Example | Result | Description |
---|---|---|
parseDate('2023-04-14', 'yyyy-MM-dd') | Thu Apr 14 00:00:00 EDT 2023 | Returns a Date object representing the date parsed from the string '2023-04-14' using the 'yyyy-MM-dd' format, which results in 'Thu Apr 14 00:00:00 EDT 2023'. |
To view all Jiffy functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article