NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1284 most downloaded on npm
Parse, validate, manipulate, and display dates
Last release 3 days ago
15 Sep 2026
Ships unpredictably
gaps range from 8 days to 2.7 years
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
15 years old
77 releases · first in 2011
Added ability to set offset with moment#zone.
Released Jul 8, 2013
Added better week support.
Added ability to set offset with moment#zone.
Added ability to set month or weekday from a string.
Added moment#min and moment#max
Added short form localized tokens.
Released 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.
One column per quarter.
_Released Oct 2, 2012_ Bugfixes
Released Oct 2, 2012
Bugfixes
_Released Oct 1, 2012_ Bugfixes
Released Oct 1, 2012
Bugfixes
Added moment.fn.endOf() and moment.fn.startOf().
Released Jul 26, 2012
Added moment.fn.endOf() and moment.fn.startOf().
Added validation via moment.fn.isValid().
Made formatting method 3x faster. http://jsperf.com/momentjs-cached-format-functions
Add support for month/weekday callbacks in moment.fn.format()
Added instance specific languages.
Added two letter weekday abbreviations with the formatting token dd.
Various language updates.
Various bugfixes.
Nothing published for this version
Nothing published for this version
There are a few things deprecated in the 1.6.0 release.
Released 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.
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.
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.
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.
Nothing published for this version
Added automatic ISO8601 parsing.
Released Mar 20, 2012
Added UTC mode.
Added automatic ISO8601 parsing.
Various bugfixes.
Added moment.fn.toDate as a replacement for moment.fn.native.
Released Feb 4, 2012
Added moment.fn.toDate as a replacement for moment.fn.native.
Added moment.fn.sod and moment.fn.eod to get the start and end of day.
Various bugfixes.
Added support for parsing month names in the current language.
Released Jan 5, 2012
Added support for parsing month names in the current language.
Added escape blocks for parsing tokens.
Added moment.fn.calendar to format strings like 'Today 2:30 PM', 'Tomorrow 1:25 AM', and 'Last Sunday 4:30 AM'.
Added moment.fn.day as a setter.
Various bugfixes
Added timezones to parser and formatter.
Released Dec 7, 2011
Added timezones to parser and formatter.
Added moment.fn.isDST.
Added moment.fn.zone to get the timezone offset in minutes.
Added time specific diffs (months, days, hours, etc)
Released Nov 12, 2011
Added time specific diffs (months, days, hours, etc)
Added moment.fn.format localized masks. 'L LL LLL LLLL' issue 29
Added moment.version to get the current version.
Released Oct 18, 2011
Added moment.version to get the current version.
Removed window !== undefined when checking if module exists to support browserify. issue 25
Added convenience methods for getting and setting date parts.
Added convenience methods for getting and setting date parts.
Added better support for moment.add().
Added better lang support in NodeJS.
Renamed library from underscore.date to Moment.js
Your coding agent can read these notes before it upgrades. Set up the MCP server →