Package category
Date and time
Parse, format, compare and manipulate dates, times and time zones.
306 packages7 comparisons
Packages compared
306 packages
| Package | Weekly downloads | 12-month change | 52 weeks | Gzip | Last release | Module | Types | Categories |
|---|---|---|---|---|---|---|---|---|
| kind-of Get the native type of a value. | 115.1m | +4% | - | 6 years ago 6.0.3 | CommonJS | None | Date and time, Strings and text | |
| date-fns Collection of standalone functions for working with native JavaScript Date objects. | 72.4m | +129% | - | 3 months ago 4.4.0 | ESM + CommonJS | Bundled | Date and time, Utility libraries | |
| is-date-object Is this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag. | 70.7m | +52% | - | 1 year ago 1.1.0 | CommonJS | Bundled | Date and time | |
| dayjs Date library with a largely Moment.js-compatible API, extended through plugins. | 51.5m | +95% | - | 1 month ago 1.11.23 | CommonJS | Bundled | Date and time | |
| postgres-date Postgres date column parser | 44.4m | +198% | - | 4 years ago 2.1.0 | CommonJS | Bundled | Date and time, Database clients and drivers | |
| luxon Date and time library with DateTime, Duration and Interval types, built on the Intl API. | 27.4m | +99% | - | 1 year ago 3.7.2 | ESM + CommonJS | None | Date and time | |
| @date-fns/tz date-fns timezone utils | 27m | +827% | - | 4 months ago 1.5.0 | ESM + CommonJS | Bundled | Date and time | |
| moment Date library for parsing, validating, manipulating and formatting dates. | 26.5m | +22% | - | 10 days ago 2.31.0 | CommonJS | Bundled | Date and time, Internationalisation | |
| clone-deep Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives. | 20.8m | +16% | - | 7 years ago 4.0.1 | CommonJS | None | Date and time, Node.js utilities | |
| fecha Date formatting and parsing | 17.8m | +53% | - | 4 years ago 4.2.3 | ESM + CommonJS | Bundled | Date and time | |
| @tabby_ai/hijri-converter Typescript port of an accurate python Hijri-Gregorian dates converter based on the Umm al-Qura calendar: https://github.com/mhalshehri/hijri-converter | 16.4m | +3283049% | - | 3 years ago 1.0.5 | CommonJS | Bundled | Date and time | |
| cron-parser Node.js library for parsing crontab instructions | 14.2m | +160% | - | 12 days ago 5.10.1 | CommonJS | Bundled | Date and time, Parsers and serialisers | |
| moment-timezone Parse and display moments in any timezone. | 12.9m | +34% | - | 10 days ago 0.6.4 | CommonJS | Bundled | Date and time | |
| @google-cloud/precise-date A simple utility for precise-dateing functions and classes. | 8.1m | +192% | - | 8 days ago 6.1.0 | CommonJS | Bundled | Date and time, Cloud SDKs | |
| date-fns-tz Time zone support for date-fns v3 with the Intl API | 7.5m | +77% | - | 1 year ago 3.2.0 | ESM + CommonJS | Bundled | Date and time | |
| date-format Formatting Date objects as strings since 2013 | 6.2m | -5% | - | 3 years ago 4.0.14 | CommonJS | None | Date and time | |
| natural-orderby Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc. | 4.8m | +84% | - | 1 year ago 5.0.0 | ESM + CommonJS | Bundled | Date and time | |
| @js-joda/core a date and time library for javascript | 3.1m | +91% | - | 2 months ago 6.1.0 | ESM + CommonJS | Bundled | Date and time | |
| node-schedule A cron-like and not-cron-like job scheduler for Node. | 2.8m | +15% | - | 3 years ago 2.1.1 | CommonJS | None | Date and time, Queues and background jobs | |
| cronstrue Convert cron expressions into human readable descriptions | 2.6m | +166% | - | 9 days ago 3.27.0 | CommonJS | Bundled | Date and time | |
| time-stamp Get a formatted timestamp. | 2.5m | -1% | - | 7 years ago 2.2.0 | CommonJS | Bundled | Date and time, CLI tools and terminal utilities | |
| humanize-duration Convert millisecond durations to English and many other languages. | 2.4m | +55% | - | 14 days ago 3.35.0 | CommonJS | None | Date and time | |
| rrule JavaScript library for working with recurrence rules for calendar dates. | 2.1m | +156% | - | 2 years ago 2.8.1 | ESM + CommonJS | Bundled | Date and time, TypeScript tooling | |
| pretty-time Easily format the time from node.js `process.hrtime`. Works with timescales ranging from weeks to nanoseconds. | 2m | +68% | - | 8 years ago 1.1.0 | CommonJS | None | Date and time | |
| detect-europe-js Detect if a user is from a country around the European Union (EU) area | 2m | +171% | - | 1 year ago 0.1.2 | ESM + CommonJS | Bundled | Date and time | |
| mockdate A JavaScript mock Date object that can be used to change when "now" is. | 2m | +21% | - | 5 years ago 3.0.5 | CommonJS | Bundled | Testing, Date and time | |
| @segment/isodate Parse an ISO date string into a Date | 1.6m | +120% | - | 8 years ago 1.0.3 | - | - | Date and time | |
| @segment/isodate-traverse Traverse an object and convert all ISO strings into Dates. | 1.6m | +111% | - | 5 years ago 1.1.1 | - | - | Date and time | |
| new-date Creates a new Date, but accepts a few more input types than normal. | 1.6m | +96% | - | 5 years ago 1.0.3 | - | - | Date and time | |
| maxmind IP lookup using Maxmind databases | 1.5m | +740% | - | 1 month ago 5.0.7 | CommonJS | Bundled | Date and time | |
| @fullcalendar/interaction Calendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting | 1.5m | - | - | - | 3 months ago 6.1.21 | - | - | Date and time |
| date-arithmetic simple date math util | 984.4k | +84% | - | 6 years ago 4.1.0 | ESM + CommonJS | None | Date and time | |
| timestring Parse a human readable time string into a time based value | 960.8k | +311% | - | 3 years ago 7.0.0 | CommonJS | None | Date and time | |
| duration Time duration utilities | 942.2k | -21% | - | 7 years ago 0.2.2 | - | None | Date and time | |
| @expo/timeago.js timeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported. | 867.8k | - | - | - | 5 years ago 1.0.0 | CommonJS | None | Date and time |
| @wojtekmaj/date-utils A collection of date-related utilities. | 779.3k | - | - | - | 1 year ago 2.0.2 | ESM only | Bundled | Date and time |
| vega-time JavaScript date/time utilities for Vega. | 743.2k | +235% | - | 1 month ago 3.3.0 | ESM only | None | Date and time, Charts and data visualisation | |
| date-time Pretty datetime: `2014-01-09 06:46:01` | 717.8k | -25% | - | 5 years ago 4.0.0 | ESM only | None | Date and time | |
| @googlemaps/google-maps-services-js Node.js client library for Google Maps API Web Services | 679.9k | - | - | - | 1 year ago 3.4.2 | CommonJS | Bundled | Maps and geolocation, Date and time |
| moment-duration-format A moment.js plugin for formatting durations. | 645.3k | +76% | - | 7 years ago 2.3.2 | CommonJS | None | Date and time | |
| countries-and-timezones Minimalistic library to work with countries and timezones data. | 644.9k | +122% | - | 1 month ago 3.10.0 | ESM + CommonJS | Bundled | Date and time | |
| time-zone Pretty time zone: `+2` or `-9:30` | 626.2k | -16% | - | 5 years ago 2.0.0 | ESM only | None | Date and time | |
| caldate Calendar date for date-holidays | 598.3k | +155% | - | 3 years ago 2.0.5 | ESM + CommonJS | Bundled | Date and time | |
| date-bengali-revised Revised Bengali Calendar | 588.1k | +157% | - | 4 years ago 2.0.2 | ESM + CommonJS | Bundled | Date and time | |
| chartjs-adapter-date-fns Chart.js adapter to use date-fns for time functionalities | 585.9k | +59% | - | 3 years ago 3.0.0 | ESM + CommonJS | None | Date and time | |
| timezone-mock A JavaScript library to mock the local timezone. | 545.5k | +51% | - | 3 months ago 1.4.3 | CommonJS | Bundled | Date and time | |
| teleport-javascript A super light and fast JavaScript object (de)serialization that includes date, bigint, regex, etc. | 481.7k | -15% | - | 6 years ago 1.0.0 | ESM + CommonJS | Bundled | Date and time | |
| tz-lookup fast time zone lookup | 456.1k | +318% | - | 6 years ago 6.1.25 | CommonJS | None | Date and time | |
| @formatjs/intl-relativetimeformat Formats JavaScript dates to relative time strings. | 445.5k | - | - | - | 12 days ago 12.3.15 | ESM only | Bundled | Internationalisation, Date and time |
| jest-date-mock Mock `window.Date` when run unit test cases with jest. Make tests of `Date` easier. | 430.5k | +22% | - | 2 years ago 1.0.10 | CommonJS | Bundled | Date and time, Testing |
12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.
- kind-ofGet the native type of a value.
- date-fnsCollection of standalone functions for working with native JavaScript Date objects.
- is-date-objectIs this value a JS Date object? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
- dayjsDate library with a largely Moment.js-compatible API, extended through plugins.
- postgres-datePostgres date column parser
- luxonDate and time library with DateTime, Duration and Interval types, built on the Intl API.
- @date-fns/tzdate-fns timezone utils
- momentDate library for parsing, validating, manipulating and formatting dates.
- clone-deepRecursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.
- fechaDate formatting and parsing
- @tabby_ai/hijri-converterTypescript port of an accurate python Hijri-Gregorian dates converter based on the Umm al-Qura calendar: https://github.com/mhalshehri/hijri-converter
- cron-parserNode.js library for parsing crontab instructions
- moment-timezoneParse and display moments in any timezone.
- @google-cloud/precise-dateA simple utility for precise-dateing functions and classes.
- date-fns-tzTime zone support for date-fns v3 with the Intl API
- date-formatFormatting Date objects as strings since 2013
- natural-orderbyLightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
- @js-joda/corea date and time library for javascript
- node-scheduleA cron-like and not-cron-like job scheduler for Node.
- cronstrueConvert cron expressions into human readable descriptions
- time-stampGet a formatted timestamp.
- humanize-durationConvert millisecond durations to English and many other languages.
- rruleJavaScript library for working with recurrence rules for calendar dates.
- pretty-timeEasily format the time from node.js `process.hrtime`. Works with timescales ranging from weeks to nanoseconds.
- detect-europe-jsDetect if a user is from a country around the European Union (EU) area
- mockdateA JavaScript mock Date object that can be used to change when "now" is.
- @segment/isodateParse an ISO date string into a Date
- @segment/isodate-traverseTraverse an object and convert all ISO strings into Dates.
- new-dateCreates a new Date, but accepts a few more input types than normal.
- maxmindIP lookup using Maxmind databases
- @fullcalendar/interactionCalendar functionality for event drag-n-drop, event resizing, date clicking, and date selecting
- date-arithmeticsimple date math util
- timestringParse a human readable time string into a time based value
- durationTime duration utilities
- @expo/timeago.jstimeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported.
- @wojtekmaj/date-utilsA collection of date-related utilities.
- vega-timeJavaScript date/time utilities for Vega.
- date-timePretty datetime: `2014-01-09 06:46:01`
- @googlemaps/google-maps-services-jsNode.js client library for Google Maps API Web Services
- moment-duration-formatA moment.js plugin for formatting durations.
- countries-and-timezonesMinimalistic library to work with countries and timezones data.
- time-zonePretty time zone: `+2` or `-9:30`
- caldateCalendar date for date-holidays
- date-bengali-revisedRevised Bengali Calendar
- chartjs-adapter-date-fnsChart.js adapter to use date-fns for time functionalities
- timezone-mockA JavaScript library to mock the local timezone.
- teleport-javascriptA super light and fast JavaScript object (de)serialization that includes date, bigint, regex, etc.
- tz-lookupfast time zone lookup
- @formatjs/intl-relativetimeformatFormats JavaScript dates to relative time strings.
- jest-date-mockMock `window.Date` when run unit test cases with jest. Make tests of `Date` easier.