new Date()
- Source:
Methods
format(formatString) → {string}
Returns a string representing the given date. Supported are yyyy(Year4), yy(Year2), MM(Month2), dd(Date2), d(Date), HH(Hour2), mm(Minutes2), ss(Seconds2)
Parameters:
| Name | Type | Description |
|---|---|---|
formatString |
string | formatString to use for laying out the date |
- Source:
Returns:
- Type
- string