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 787ac80 commit d36d533Copy full SHA for d36d533
1 file changed
components/dash-core-components/src/utils/calendar/helpers.ts
@@ -35,6 +35,7 @@ function convertFormatTokens(momentFormat: string): string {
35
.replace(/Do/g, 'do') // Ordinal day: 1st, 2nd, 3rd
36
.replace(/YYYY/g, 'yyyy') // 4-digit year
37
.replace(/YY/g, 'yy') // 2-digit year
38
+ .replace(/Y/g, 'y') // Year (numeric, variable length)
39
.replace(/DD/g, 'dd') // Day of month with leading zero
40
.replace(/D/g, 'd') // Day of month
41
.replace(/X/g, 't'); // Unix timestamp (seconds)
0 commit comments