Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion 1-js/05-data-types/10-date/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down