Moment.js v1.6.0 Release Notes

    • ๐Ÿš€ Release Apr 26, 2012

    โž• Added Durations.

    ๐Ÿ“œ Revamped parser to support parsing non-separated strings (YYYYMMDD vs YYYY-MM-DD).

    โž• Added support for millisecond parsing and formatting tokens (S SS SSS)

    โž• Added a getter for moment.lang()

    ๐Ÿ›  Various bugfixes.

    ๐Ÿš€ There are a few things deprecated in the 1.6.0 release.

    ๐Ÿ‘€ 1. The format tokens z and zz (timezone abbreviations like EST CST MST etc) will no longer be supported. Due to inconsistent browser support, we are unable to consistently produce this value. See this issue for more background.

    ๐Ÿ—„ 2. The method moment.fn.native is deprecated in favor of moment.fn.toDate. There continue to be issues with Google Closure Compiler throwing errors when using native, even in valid instances.

    ๐Ÿ‘€ 3. The way to customize am/pm strings is being changed. This would only affect you if you created a custom language file. For more information, see this issue.