JavaScript Date parse()
JavaScript Date parse()
The parse() method is used to parse a date string and returns the time difference since January 1, 1970. Its return value is in milliseconds.
Syntax:-
Its syntax is:- Date.parse(datestring)
Return:-
Its return is:- number in milliseconds from specified date string to January 1, 1970
Parameter | Description |
datestring | Required. A string represents a date. |