Glossary Term
Date.parse()
The Date.parse() static method parses a string representation of a date, and returns the date’s timestamp.
This function is useful for setting date values based on string values, for example in conjunction with the setTime() method.
The formats that parse() can handle are not explicitly specified, but there are a few invariants:
The date time string format (produced by toISOString()) must be supported. If x is any Date whose milliseconds amount is zero, then x.valueOf() should be equal to any of the following: Date.parse(x.toString()), Date.parse(x.toUTCString()), Date.parse(x.toISOString()). This means the formats produced by toString() and toUTCString() should be supported too. The spec does not require support for the format produced by toLocaleString(). However, major engines all try to support toLocaleString(“en-US”) format.
Syntax example: Date.parse(dateString)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
