Class ISODate
Object
|
+--Date
|
+--ISODate
- class
ISODate
- extends Date
Defined in iso_date.js
Field Summary |
<static> <final> RegEx |
REGEX
A regular expression that matches valid ISO dates. |
Constructor Summary |
ISODate
(dateStr)
Creates a Date object based on a date string
following the ISO format: yyyymmdd or yyyymmddThh:mm:ss.fff
|
Method Summary |
function
|
toISOString()
|
<static> int
|
parse(dateStr)
Returns the number of milliseconds since January 1, 1970, 00:00:00, local time.
|
REGEX
<static> <final> RegEx REGEX
A regular expression that matches valid ISO dates.
ISODate
function ISODate(dateStr)
Creates a Date
object based on a date string
following the ISO format: yyyymmdd or yyyymmddThh:mm:ss.fff
Parameters:
dateStr
- (Optional) a date string in ISO format
toISOString
function toISOString()
parse
<static> int parse(dateStr)
Returns the number of milliseconds since January 1, 1970, 00:00:00, local time.
If dateStr
is not in ISO format, then Date.parse
is
called with no changes to dateStr
.
Parameters:
dateStr
- a date string either in ISO format, or a format that JavaScript's native Date
object can parse.
Returns:
the number of milliseconds since January 1, 1970, 00:00:00, local time.