Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Commit d5db326

Browse files
author
Zach Bagnall
committed
Add section on Dates and Times (moment.js + mmm format)
1 parent 18abccb commit d5db326

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
## Table of Contents
99

1010
1. [Types](#types)
11+
1. [Dates and times](#datetimes)
1112
1. [Objects](#objects)
1213
1. [Arrays](#arrays)
1314
1. [Strings](#strings)
@@ -74,6 +75,14 @@
7475

7576
**[⬆ back to top](#table-of-contents)**
7677

78+
## Dates and times
79+
80+
- **Thou shalt use [moment.j](http://momentjs.com/)s**: because it does common stuff sensibly including formatting, parsing and edge cases like DST.
81+
82+
- **Thou shalt not output numeric months** (unless preceded by year) because [it is easily confused](http://metabroadcast.com/blog/dd-mm-yyyy-is-evil) with day. Use `mmm` instead.
83+
84+
**[⬆ back to top](#table-of-contents)**
85+
7786
## Objects
7887

7988
- Use the literal syntax for object creation.

0 commit comments

Comments
 (0)