We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3e444 commit 7d6d22cCopy full SHA for 7d6d22c
README.md
@@ -24,7 +24,7 @@ template.render(new Date());
24
25
* `MMMM` - Full Month (September)
26
* `MM` - Partial Month (Sep)
27
- * `Mo` - Numeric Month (9)
+ * `Mo` - Numeric Month (9) <sup>1</sup>
28
* `YYYY` - Full Year (1992)
29
* `YY` - Partial Year (92)
30
* `dddd` - Day of the Week (Monday)
@@ -35,6 +35,12 @@ template.render(new Date());
35
* `mm` - Minutes (zero padded)
36
* `ss` - Seconds (zero padded)
37
* `a` - AM/PM
38
+
39
+ <sup>1</sup> - you get padded months (`09` instead of `9`) by passing in the `padMonth` option.
40
41
+ ```js
42
+ const template = tinytime('{Mo}', { padMonth: true })
43
+ ```
44
45
46
## Efficiency
0 commit comments