Skip to content

Commit 79b9b84

Browse files
committed
closes #2988
1 parent 2281506 commit 79b9b84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/05-data-types/11-date/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To create a new `Date` object call `new Date()` with one of the following argume
5757
`new Date(year, month, date, hours, minutes, seconds, ms)`
5858
: Create the date with the given components in the local time zone. Only the first two arguments are obligatory.
5959

60-
- The `year` must have 4 digits: `2013` is okay, `98` is not.
60+
- The `year` should have 4 digits. For compatibility, 2 digits are also accepted and considered `19xx`, e.g. `98` is same as `1998` here, but always using 4 digits is strongly encouraged.
6161
- The `month` count starts with `0` (Jan), up to `11` (Dec).
6262
- The `date` parameter is actually the day of month, if absent then `1` is assumed.
6363
- If `hours/minutes/seconds/ms` is absent, they are assumed to be equal `0`.
@@ -407,7 +407,7 @@ We can instantly create a `new Date` object from the timestamp:
407407
```js run
408408
let date = new Date( Date.parse('2012-01-26T13:51:50.417-07:00') );
409409

410-
alert(date);
410+
alert(date);
411411
```
412412

413413
## Summary

0 commit comments

Comments
 (0)