/
parseDate
parseDate
Description
Returns the parsed date according to the format you provided. If parse fails, it will return a null date.
Parameters
Return Type
Date
Example
print("(1) Parsed date is:" + parseDate("yyyy.MM.dd", "2000.01.01")); // returns a valid date
print("(2) Parsed date is:" + parseDate("yyyy.MM.dd", "2000/01/01")); // returns an empty date (null)
print("(3) Parsed date is:" + parseDate("dd/MMM/yy", "5/???/18", "ru-RU")); // returns a valid date which is parsed using ru-RU locale
See also
, multiple selections available,
Related content
toDate
Read with this
parseDate
parseDate
More like this
Variable types and reference methods
Variable types and reference methods
Read with this
parseDate
parseDate
More like this
String Functions
String Functions
Read with this
parseDate
parseDate
More like this