You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/05-data-types/11-date/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,7 +412,7 @@ alert(date);
412
412
413
413
## Summary
414
414
415
-
- Date and time in JavaScript are represented with the [Date](mdn:js/Date) object. We can't create "only date" or "only time": `Date` objects always carry both.
415
+
- Date and time are represented with the [Date](mdn:js/Date) object. We can't create "only date" or "only time": `Date` objects always carry both.
416
416
- Months are counted from zero (yes, January is a zero month).
417
417
- Days of week in `getDay()` are also counted from zero (that's Sunday).
418
418
- `Date` auto-corrects itself when out-of-range components are set. Good for adding/subtracting days/months/hours.
0 commit comments