Moment.js 2.0.0

A lightweight javascript date library for parsing, manipulating, and formatting dates.

There is a newer version of this package available.
See the version list below for details.
Install-Package Moment.js -Version 2.0.0
dotnet add package Moment.js --version 2.0.0
paket add Moment.js --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

- 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 wierdness 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.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
2.24.0 12,504 1/21/2019
2.23.0 24,076 12/13/2018
2.22.2 205,014 6/1/2018
2.22.1 121,082 4/15/2018
2.22.0 20,950 3/30/2018
2.21.0 67,751 3/2/2018
2.20.1 136,745 12/19/2017
2.20.0 2,762 12/17/2017
2.19.4 9,829 12/11/2017
2.19.3 20,881 11/29/2017
2.19.2 46,239 11/11/2017
2.19.1 73,886 10/11/2017
2.19.0 3,264 10/10/2017
2.18.2 308,244 4/30/2017
2.18.1 99,596 3/21/2017
2.18.0 8,224 3/18/2017
2.17.1 223,601 12/4/2016
2.17.0 49,234 11/22/2016
2.16.0 38,049 11/10/2016
2.15.2 55,393 10/24/2016
2.15.1 70,777 9/21/2016
2.15.0 18,962 9/12/2016
2.14.3 182,742 7/6/2016
2.14.2 1,089 7/5/2016
2.14.1 17,985 7/4/2016
2.13.0 315,067 4/18/2016
2.12.0 167,790 3/7/2016
2.11.2 96,209 2/3/2016
2.11.1 112,729 1/9/2016
2.11.0 31,486 1/2/2016
2.10.6 345,613 7/28/2015
2.10.5 2,718 7/26/2015
2.10.3 216,870 5/13/2015
2.10.2 75,409 4/9/2015
2.10.1 776 4/9/2015
2.10.0 7,135 4/7/2015
2.9.0 748,519 1/8/2015
2.8.4 60,801 12/10/2014
2.8.3 888 12/10/2014
2.8.2 164,607 9/3/2014
2.8.1 82,707 8/5/2014
2.7.0 71,470 6/17/2014
2.6.0 151,186 4/23/2014
2.5.1 117,457 1/27/2014
2.5.0 39,768 1/5/2014
2.4.0 78,147 10/28/2013
2.3.1 28,401 10/10/2013
2.3.0 493 10/10/2013
2.2.1 24,925 9/12/2013
2.2.0 532 9/12/2013
2.1.0 59,660 7/8/2013
2.0.0 73,611 2/14/2013
1.7.2 35,730 10/3/2012
1.7.1 454 10/3/2012
1.7.0 4,408 8/27/2012
1.6.2 2,699 5/4/2012
1.6.1 460 5/4/2012
1.6.0 445 5/4/2012
1.5.1 463 5/4/2012
1.5.0 448 5/4/2012
1.4.0 597 3/8/2012
1.3.0 656 1/12/2012
1.2.0 934 12/17/2011
Show less