ISO Calendar ISO Calendar npm install moment - isocalendar If you are looking for a Python-like isocalendar method, you can use Rocky Meza's plugin moment-isocalendar...
Unix Timestamp (seconds)1.6.0+ Unix Timestamp (seconds)1.6.0+ moment . unix ( Number ) To create a moment from a Unix timestamp (seconds since the Unix Epoch), use mom...
Parse Parse Instead of modifying the native Date.prototype , Moment.js creates a wrapper for the Date object. To get this wrapper object, simply call moment() with one of the...
Integration Script Tag Common JS Bundlers (Webpack, Rollup, etc.) Require JS Content Security Policy Integration Chart.js can be integrated with plain JavaScript or with d...
Is Daylight Saving Time1.2.0+ Is Daylight Saving Time1.2.0+ moment (). isDST (); moment#isDST checks if the current moment is in daylight saving time. moment ([ 2011...
Is a Date2.9.0+ Is a Date2.9.0+ moment . isDate ( obj ); To check if a variable is a native js Date object, use moment.isDate() . moment . isDate (); // false mom...
Pseudo Locale2.13.0+ Pseudo Locale2.13.0+ moment . locale ( 'x-pseudo' ) As of version 2.13.0 moment optionally includes a pseudo locale. This locale will populate th...