Moment.js v2.0.0 Release Notes

    • ๐Ÿš€ Release Feb 9, 2013

    โž• Added short form localized tokens.

    โž• Added ability to define language a string should be parsed in.

    โž• Added support for reversed add/subtract arguments.

    โž• Added support for endOf('week') and startOf('week').

    ๐Ÿ›  Fixed the logic for moment#diff(Moment, 'months') and moment#diff(Moment, 'years')

    moment#diff now floors instead of rounds.

    Normalized moment#toString.

    โž• Added isSame, isAfter, and isBefore methods.

    โž• Added better week support.

    โž• Added moment#toJSON

    ๐Ÿ›  Bugfix: Fixed parsing of first century dates

    ๐Ÿ›  Bugfix: Parsing 10Sep2001 should work as expected

    ๐Ÿ›  Bugfix: Fixed weirdness with moment.utc() parsing.

    ๐Ÿ”„ Changed language ordinal method to return the number + ordinal instead of just the ordinal.

    ๐Ÿ”„ Changed two digit year parsing cutoff to match strptime.

    โœ‚ Removed moment#sod and moment#eod in favor of moment#startOf and moment#endOf.

    โœ‚ Removed moment.humanizeDuration() in favor of moment.duration().humanize().

    โœ‚ Removed the lang data objects from the top level namespace.

    Duplicate Date passed to moment() instead of referencing it.