Skip to content
JS
Package category

Date and time

Parse, format, compare and manipulate dates, times and time zones.

306 packages7 comparisons

Packages compared

306 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
rrule-temporal
Recurrence rule (rrule) processing using Temporal PlainDate/PlainDateTime, with cross-timezone and cross-calendar rrule support
393.5k+4196%-7 days ago
2.2.6
ESM + CommonJSBundledDate and time
moment-range
Fancy date ranges for Moment.js
339.6k+26%-7 years ago
4.0.2
CommonJSBundledDate and time
javascript-time-ago
Localized relative date/time formatting
334.4k+55%-6 months ago
2.6.4
ESM + CommonJSBundledDate and time
geo-tz
A node.js module to find the timezone at specific gps coordinates
327.1k+171%-8 days ago
8.1.9
ESM + CommonJSBundledDate and time
date-and-time
The simplest, most intuitive date and time library
325k-5%-3 days ago
4.6.0
ESM + CommonJSBundledDate and time
cron-validator
Validates cron expressions
290k+78%-1 year ago
1.4.0
CommonJSBundledDate and time, Schema validation
tinyduration
ISO-8601 duration parsing and serialization
282.5k+243%-1 year ago
3.4.1
CommonJSBundledTypeScript tooling, Date and time
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.
245k+25%-6 years ago
4.0.2
ESM + CommonJSNoneDate and time, Internationalisation
@js-joda/timezone
iana tzdb timezone bindings for js-joda
228.9k---2 months ago
2.25.2
ESM + CommonJSBundledDate and time
human-interval
Human readable time measurements
201.5k+33%-5 years ago
2.0.1
CommonJSBundledDate and time
moment-business-days
MomentJS plugin to use business days
194.6k+17%-6 years ago
1.2.0
CommonJSBundledDate and time
tinydate
A tiny (349B) reusable date formatter. Extremely fast!
193.2k+5%-6 years ago
1.3.0
ESM + CommonJSBundledDate and time
@heroui/calendar
A calendar displays one or more date grids and allows users to select a single date.
178.7k---6 months ago
2.2.32
ESM + CommonJSBundledDate and time, UI component libraries
dayjs-plugin-utc
utc plugin for dayjs
164.6k-0%--
0.1.2
CommonJSNoneDate and time
@hyperjump/json-schema-formats
A collection of validation functions for the JSON Schema `format` keyword.
156.1k---3 days ago
1.0.7
ESM onlyNoneCryptography and hashing, Email
jstimezonedetect
This script gives you the zone info key representing your device's time zone setting. The return value is an IANA zone info key (aka the Olson time zone database).
155.8k+51%-7 years ago
1.0.7
CommonJSNoneDate and time
jstz
Timezone detection for JavaScript
152.9k+69%-7 years ago
2.1.1
CommonJSBundledDate and time
date-utils
Date add-ons for Node.js
148.1k-37%-10 years ago
1.2.21
CommonJSNoneDate and time
chartjs-adapter-moment
Chart.js adapter to use Moment.js for time functionalities
146k+21%-3 years ago
1.0.1
ESM + CommonJSNoneDate and time
@wordpress/date
Date module for WordPress.
139.5k---2 days ago
5.56.0
ESM + CommonJSBundledDate and time
iso-datestring-validator
The goal of the package is to provide lightweight tools for validating strings denotings dates and time. It includes ISO 8601 datestring validation, simple YYYY-MM-DD date validation and time validation in hh:mm:ss.fff format. See details in readme.
139.5k+151%-4 years ago
2.2.2
CommonJSNoneDate and time
chartjs-adapter-luxon
Chart.js adapter to use Luxon for time functionalities
138.8k+106%-3 years ago
1.3.1
ESM onlyNoneDate and time
moment-duration-format-commonjs
A moment.js plugin for formatting durations.
137.6k-19%-5 years ago
1.0.1
CommonJSNoneDate and time
moment-timezone-data-webpack-plugin
Remove unneeded data from moment-timezone in a webpack build
130.2k+18%-4 years ago
1.5.1
CommonJSBundledDate and time, Bundler plugins and loaders
@kikobeats/time-span
simple high resolution timing
126k---5 months ago
1.0.13
CommonJSBundledDate and time
timezone-support
Lightweight time zone support for your applications or other date libraries.
125.7k+20%-3 years ago
3.1.0
ESM + CommonJSBundledDate and time
@fullcalendar/moment-timezone
Enhanced named time zone functionality with Moment Timezone
118.8k---3 months ago
6.1.21
ESM + CommonJSBundledDate and time
date-format-parse
Lightweight date format and parse
118.7k+34%-5 years ago
0.2.7
ESM + CommonJSNoneDate and time
@joi/date
Joi extension for dates
115.4k---1 month ago
3.0.0
ESM onlyBundledDate and time, Schema validation
@ljharb/now
The current time in milliseconds, from the most precise monotonic clock available (`performance.now` → `process.hrtime` → `Date.now` → `new Date().getTime()`), for measuring elapsed time.
105.2k---3 months ago
1.0.1
ESM + CommonJSBundledDate and time
chai-datetime
date / time comparison matchers for chai
97.1k-11%-2 years ago
1.8.1
CommonJSNoneDate and time, Testing
helper-date
Format dates with date.js and moment.js. Uses date.js to parse human readable date phrases, and moment to format the rendered output. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registere
90.5k-15%-9 years ago
1.0.1
CommonJSNoneDate and time, Utility libraries
fromnow
A tiny (339B) utility for human-readable time differences between now and past or future dates.
84.8k+62%-7 years ago
3.0.1
ESM + CommonJSBundledDate and time
@fullcalendar/luxon3
Enhanced date formatting, conversion, and named time zone functionality with Luxon 3
78.9k---3 months ago
6.1.21
ESM + CommonJSBundledDate and time
@fullcalendar/moment
Enhanced date formatting and conversion with Moment
70.2k---3 months ago
6.1.21
ESM + CommonJSBundledDate and time
storybook-mock-date-decorator
Storybook MockDate decorator
66k+34%-1 year ago
3.0.0
ESM onlyBundledDate and time, Documentation tooling
@microsoft/recognizers-text-date-time
recognizers-text provides robust recognition and resolution of date/time expressed in multiple languages.
65.9k---3 years ago
1.3.2
ESM + CommonJSBundledDate and time, AI and machine learning
dayjs-business-time
A [Day.js](https://github.com/iamkun/dayjs) plugin that allows you to work with Business Time.
64.9k+158%-5 years ago
1.0.4
CommonJSBundledDate and time
@microsoft/recognizers-text-suite
recognizers-text-suite provides robust recognition and resolution of numbers, units, date/time, and more; expressed in multiple languages.
64.7k---3 years ago
1.3.1
ESM + CommonJSBundledDate and time, AI and machine learning
@formkit/tempo
The easiest way to work with dates in JavaScript and TypeScript.
61.8k---4 months ago
1.1.0
ESM + CommonJSBundledDate and time, TypeScript tooling
@date-vir/duration
Durations units an utils for date-vir.
61.1k---2 days ago
9.2.0
ESM onlyBundledDate and time
moment-mini
Parse, validate, manipulate, and display dates
56.6k-16%-4 years ago
2.29.4
CommonJSBundledDate and time, Internationalisation
date-fns-timezone
Parsing and formatting date strings using IANA time zones for date-fns.
53.6k+3%-7 years ago
0.1.4
CommonJSBundledDate and time
jalali-plugin-dayjs
Persian (Jalali, Khorshidi) Plugin for Day.js
52.1k+156%-2 years ago
1.1.4
ESM + CommonJSBundledDate and time
moment-jdateformatparser
Translates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.
49.6k-12%-8 years ago
1.2.1
CommonJSNoneDate and time
any-date-parser
Parse a wide range of date formats including human-input dates
49k+150%-30 days ago
2.2.4
ESM + CommonJSBundledDate and time
@foxglove/rostime
ROS Time and Duration primitives and helper methods
47.9k---5 months ago
1.1.3
CommonJSBundledDate and time
tz-offset
Javascript Timezone Offset
44.5k-3%-7 years ago
0.0.2
CommonJSNoneDate and time
timemachine
Test your time critical app by overriding the native Javascript Date function
44.2k+27%-5 years ago
0.3.2
CommonJSNoneTesting, Date and time
date-extended
Additional date extensions with a chainable api
44.1k-34%-12 years ago
0.0.6
CommonJSNoneDate and time

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.

  • rrule-temporalRecurrence rule (rrule) processing using Temporal PlainDate/PlainDateTime, with cross-timezone and cross-calendar rrule support
  • moment-rangeFancy date ranges for Moment.js
  • javascript-time-agoLocalized relative date/time formatting
  • geo-tzA node.js module to find the timezone at specific gps coordinates
  • date-and-timeThe simplest, most intuitive date and time library
  • cron-validatorValidates cron expressions
  • tinydurationISO-8601 duration parsing and serialization
  • timeago.jstimeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported.
  • @js-joda/timezoneiana tzdb timezone bindings for js-joda
  • human-intervalHuman readable time measurements
  • moment-business-daysMomentJS plugin to use business days
  • tinydateA tiny (349B) reusable date formatter. Extremely fast!
  • @heroui/calendarA calendar displays one or more date grids and allows users to select a single date.
  • dayjs-plugin-utcutc plugin for dayjs
  • @hyperjump/json-schema-formatsA collection of validation functions for the JSON Schema `format` keyword.
  • jstimezonedetectThis script gives you the zone info key representing your device's time zone setting. The return value is an IANA zone info key (aka the Olson time zone database).
  • jstzTimezone detection for JavaScript
  • date-utilsDate add-ons for Node.js
  • chartjs-adapter-momentChart.js adapter to use Moment.js for time functionalities
  • @wordpress/dateDate module for WordPress.
  • iso-datestring-validatorThe goal of the package is to provide lightweight tools for validating strings denotings dates and time. It includes ISO 8601 datestring validation, simple YYYY-MM-DD date validation and time validation in hh:mm:ss.fff format. See details in readme.
  • chartjs-adapter-luxonChart.js adapter to use Luxon for time functionalities
  • moment-duration-format-commonjsA moment.js plugin for formatting durations.
  • moment-timezone-data-webpack-pluginRemove unneeded data from moment-timezone in a webpack build
  • @kikobeats/time-spansimple high resolution timing
  • timezone-supportLightweight time zone support for your applications or other date libraries.
  • @fullcalendar/moment-timezoneEnhanced named time zone functionality with Moment Timezone
  • date-format-parseLightweight date format and parse
  • @joi/dateJoi extension for dates
  • @ljharb/nowThe current time in milliseconds, from the most precise monotonic clock available (`performance.now` → `process.hrtime` → `Date.now` → `new Date().getTime()`), for measuring elapsed time.
  • chai-datetimedate / time comparison matchers for chai
  • helper-dateFormat dates with date.js and moment.js. Uses date.js to parse human readable date phrases, and moment to format the rendered output. Should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registere
  • fromnowA tiny (339B) utility for human-readable time differences between now and past or future dates.
  • @fullcalendar/luxon3Enhanced date formatting, conversion, and named time zone functionality with Luxon 3
  • @fullcalendar/momentEnhanced date formatting and conversion with Moment
  • storybook-mock-date-decoratorStorybook MockDate decorator
  • @microsoft/recognizers-text-date-timerecognizers-text provides robust recognition and resolution of date/time expressed in multiple languages.
  • dayjs-business-timeA [Day.js](https://github.com/iamkun/dayjs) plugin that allows you to work with Business Time.
  • @microsoft/recognizers-text-suiterecognizers-text-suite provides robust recognition and resolution of numbers, units, date/time, and more; expressed in multiple languages.
  • @formkit/tempoThe easiest way to work with dates in JavaScript and TypeScript.
  • @date-vir/durationDurations units an utils for date-vir.
  • moment-miniParse, validate, manipulate, and display dates
  • date-fns-timezoneParsing and formatting date strings using IANA time zones for date-fns.
  • jalali-plugin-dayjsPersian (Jalali, Khorshidi) Plugin for Day.js
  • moment-jdateformatparserTranslates the `java.text.SimpleDateFormat` date format to the `moment.js` date format.
  • any-date-parserParse a wide range of date formats including human-input dates
  • @foxglove/rostimeROS Time and Duration primitives and helper methods
  • tz-offsetJavascript Timezone Offset
  • timemachineTest your time critical app by overriding the native Javascript Date function
  • date-extendedAdditional date extensions with a chainable api