NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #1613 most downloaded on npm
A node.js package for Steven Levithan's excellent dateFormat() function.
Latest stable
5.0.5
Last release 29 days ago
24 Oct 2026
Ships unpredictably
gaps range from 8 days to 4.6 years
Some releases are documented
notes for 20 of 34 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
44 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Fixed DDD and DDDD returning the wrong relative day names in UTC mode (UTC: and GMT: masks, or the utc argument) when the local date differs from the
DDD and DDDD returning the wrong relative day names in UTC mode (UTC: and GMT: masks, or the utc argument) when the local date differs from the UTC date (#194)Thanks to @n0liu for their contributions ❤️
Fixed yy returning the wrong digits for years outside 1000 to 9999, including negative years
yy returning the wrong digits for years outside 1000 to 9999, including negative years (#189)W, WW and N ignoring UTC mode, so UTC: and GMT: masks now use the UTC week and weekday (#188)Thanks to @xiehuanyi for their contributions ❤️
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix deprecation warning Automatic extension resolution of the "main" field is deprecated for ES modules.
Automatic extension resolution of the "main" field is deprecated for ES modules.Thanks to @nestedscope for their contributions ❤️
Update docs for dateformat imports
Thanks to @BendingBender for their contributions ❤️
Introduced breaking changes to imports, now imports are as format import dateFormat from "dateformat";
Z format issue in Australia (details)import dateFormat from "dateformat";Thanks to @jimmywarting and @mikegreiling for their contributions ❤️
Nothing published for this version
Nothing published for this version
Fixed breaking changes with imports
Fixed Z format issue in Australia (details)
Z format issue in Australia (details)Thanks to @jimmywarting and @mikegreiling for their contributions ❤️
Nothing published for this version
Fixed an issue with the WW mask not working
WW mask not workingAdded WW mask for week with padding (details)
WW mask for week with padding (details)Fixed an issue with DDD and DDDD masks sometimes not working (details)
DDD and DDDD masks sometimes not working (details)Update DDD mask to use Ysd, Tdy and Tmw (details)
DDD mask to use Ysd, Tdy and Tmw (details)Added DDD and DDDD Mask for Today, Tomorrow and Yesterday (details)
DDD and DDDD Mask for Today, Tomorrow and Yesterday (details)Added p Mask for Timezone Offset e.g. +02:00 (details)
p Mask for Timezone Offset e.g. +02:00 (details)Fix Rounding Issue with L Mask (details)
Reduce size of package (details)
Fixed Invalid '1970-01-01' Formatting (details)
- Added Padding Short Date Mask
Fixed an issue with old years not having padding. e.g. 0009 was formatting as 9.
Nothing published for this version
There are no breaking changes in this release.
This release brings significant performance improvements to dateformat.
Some common operations are now 6 times faster than before!!!
There are no breaking changes in this release.
Nothing published for this version
Nothing published for this version
Nothing published for this version
As this requires an extra field in dateFormat.i18n it becomes a breaking change for anyone localizing the names.
Allows AM/PM indicators to be localized.
As this requires an extra field in dateFormat.i18n it becomes a breaking change for anyone localizing the names.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.