Constructor
new SpannerDate(dateopt, monthopt, dateopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
date |
string | number |
<optional> |
String representing the date or number representing the year. If year is a number between 0 and 99, then year is assumed to be 1900 + year. |
month |
number |
<optional> |
Number representing the month (0 = January). |
date |
number |
<optional> |
Number representing the date. |
Extends
- Date
Methods
toJSON() → {string}
Returns the date in ISO date format.
YYYY-MM-DD
Returns:
Type | Description |
---|---|
string |