We strongly recomend reading this if you plan to use moment with
Also upgrade to 2.14.0 or above for best experience.
As a start, you might have aquired moment through bower or node_modules or anything else that places together with a locales directory in a base folder.
Then you should use a tool like adapt-pkg-main, or manually -- using packages config.
For consistent results parsing anything other than ISO 8601 strings, you should use String + Format. 2013-02-08 # A calendar date part 2013-W06-5 # A week date part 2013-039 # An ordinal date part 20130208 # Basic (short) full date 2013W065 # Basic (short) week, weekday 2013W06 # Basic (short) week only 2013050 # Basic (short) ordinal date2013-02-08T09 # An hour time part separated by a T 2013-02-08 09 # An hour time part separated by a space 2013-02-08 # An hour and minute time part 2013-02-08 # An hour, minute, and second time part 2013-02-08 .123 # An hour, minute, second, and millisecond time part 2013-02-08 .000 # hour 24, minute, second, millisecond equal 0 means next day at midnight 20130208T080910,123 # Short date and time up to ms, separated by comma 20130208T080910.123 # Short date and time up to ms 20130208T080910 # Short date and time up to seconds 20130208T0809 # Short date and time up to minutes 20130208T08 # Short date and time, hours only Note: Automatic cross browser ISO-8601 support was added in version 1.5.0.
Support for the week and ordinal formats was added in version 2.3.0.If a string does not match any of the above formats and is not able to be parsed with was added in 2.11.1. It is useful for years that are not 4 digits or are before the common era. For these, the lowercase tokens use the locale aware week start days, and the uppercase tokens use the ISO week date start days.From version 2.10.5: fractional second tokens length 4 up to 9 can parse any number of digits, but will only consider the top 3 (milliseconds).then the globally exported moment will print a deprecation warning.From next major release you'll have to export it yourself if you want that behavior.For version 2.5.x, in case you use other plugins that rely on Moment but are not AMD-compatible you may need to add .