Merge pull request #701 from jesse-bonzo/jesse-bonzo-patch-1
Update date parse example
This commit is contained in:
commit
3c5ff398cc
1 changed files with 7 additions and 1 deletions
|
@ -39,7 +39,13 @@ To create a new `Date` object call `new Date()` with one of the following argume
|
|||
|
||||
```js run
|
||||
let date = new Date("2017-01-26");
|
||||
alert(date); // Thu Jan 26 2017 ...
|
||||
alert(date);
|
||||
// The time portion of the date is assumed to be midnight GMT and
|
||||
// is adjusted according to the timezone the code is run in
|
||||
// So the result could be
|
||||
// Thu Jan 26 2017 11:00:00 GMT+1100 (Australian Eastern Daylight Time)
|
||||
// or
|
||||
// Wed Jan 25 2017 16:00:00 GMT-0800 (Pacific Standard Time)
|
||||
```
|
||||
|
||||
`new Date(year, month, date, hours, minutes, seconds, ms)`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue