diff --git a/moment/moment-node.d.ts b/moment/moment-node.d.ts index 48f00ed98..b109893a3 100644 --- a/moment/moment-node.d.ts +++ b/moment/moment-node.d.ts @@ -467,6 +467,8 @@ declare module moment { */ ISO_8601(): void; + defaultFormat: string; + } } diff --git a/moment/moment-tests.ts b/moment/moment-tests.ts index 04c075352..29712c115 100644 --- a/moment/moment-tests.ts +++ b/moment/moment-tests.ts @@ -459,3 +459,5 @@ moment.locale('en', { }); console.log(moment.version); + +moment.defaultFormat = 'YYYY-MM-DD HH:mm';