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 ValueDescription
DateReturns a Date object representing the converted date.

Sample

ExampleResultDescription
parseDate('2023-04-14', 'yyyy-MM-dd')Thu Apr 14 00:00:00 EDT 2023Returns 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