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
jest-plugin-clock
Jest plugin to mock dates, times, and datetimes.
3.5k-39%-8 years ago
2.9.0
CommonJSNoneDate and time, Testing
is-iso-date
A simple utility to check if a string is an ISO-compliant date.
3.4k-54%-11 years ago
0.0.1
CommonJSNoneDate and time
shamsi
A Jalali to Gregorian and Gregorian to Jalali converter with no dependency
3.4k+20%-5 years ago
1.1.6
CommonJSNoneDate and time
calcdate
Evalate a date expression calc`now + 3 days`)!
3.3k+850%-6 years ago
2.0.3
CommonJSNoneDate and time
fix-date
Solution for `yyyy-MM-dd HH:mm:ss` is `Invalid Date` in Safari, IE, etc
3.3k+76%-8 years ago
1.1.6
CommonJSNoneDate and time
js-excel-date-convert
Convert dates between JS and Excel formats
3.3k-2%-6 years ago
1.0.2
CommonJSNoneDate and time, PDF and documents
sleepjs
Asynchronous sleep with better time functions and typescript bindings
3.3k+19%-5 years ago
4.0.3
CommonJSBundledPromises and async control flow, TypeScript tooling
@yaireo/relative-time
javascript function to transform timestamp or date to local relative-time
3.2k---1 year ago
1.1.0
CommonJSBundledDate and time
jest-mock-now
Date.now() as deterministic Jest mock function.
3.1k+1%-6 years ago
1.3.0
CommonJSNoneDate and time, Testing
just-my-luck
A collection of utility functions for working with randomness.
3.1k+30%-6 years ago
3.0.0
CommonJSNoneDate and time
chronoshift
A tiny library for shifting time with timezones
3.1k-7%-9 months ago
1.2.3
ESM + CommonJSBundledDate and time
nano-date
Date class that supports up to nano seconds
3k+84%-7 years ago
4.1.0
CommonJSBundledDate and time
json-date-parser
Minimal function suitable for passing to JSON.parse to revive common date-time strings into Date objects
3k+25%-9 years ago
1.0.1
CommonJSBundledDate and time
@getdashfy/utils
Formatting and utility functions for Dashfy - numbers, currencies, bytes, dates, times, strings, platform detection, and more
2.9k---2 months ago
0.1.1
ESM + CommonJSBundledUtility libraries, Date and time
pretty-date
format old JavaScript dates in a “pretty” way. ex : 2 hours ago , 3 minutes ago
2.9k+34%-12 years ago
0.2.0
CommonJSNoneDate and time
small-date
Tiny (0.8kb) date formatting library with built-in i18n
2.9k+27%-1 year ago
2.0.1
ESM + CommonJSBundledDate and time
dayjs-with-plugins
Day.js with all plugins and locales added out of the box, no need to use dayjs.extend nor dayjs.locale!
2.9k-21%-2 years ago
1.0.4
CommonJSNoneDate and time, DOM and browser utilities
micro-strptime
micro strptime implementation on JavaScript
2.9k+33%-1 year ago
1.0.0
ESM onlyBundledDate and time
@mapbox/timespace
compute fuzzy local time from a location
2.8k---9 years ago
2.0.4
CommonJSNoneDate and time
shamsi-date-converter
A minimal Jalali to Gregorian and Gregorian to Jalali converter
2.8k+14%-5 years ago
1.0.5
CommonJSBundledDate and time
css-time
A tiny library that converts milliseconds to and from CSS time.
2.8k+34%-11 years ago
0.1.12
CommonJSNoneCSS-in-JS and styling, Date and time
chai-moment
date assertions for chai, powered by moment
2.8k-34%-10 years ago
0.1.0
CommonJSNoneDate and time
cdate
a compact calendar date
2.8k+105%-3 years ago
0.0.7
ESM + CommonJSBundledDate and time
moment-es6
Module exporting momentjs library object as ES6 style default field
2.7k-60%-9 years ago
1.0.0
CommonJSNoneDate and time
@rnwonder/simple-datejs
Light weight date management library
2.7k---1 year ago
1.1.2
ESM onlyBundledDate and time
moment-recur-ts
A momentjs plugin for matching and generating recurring dates.
2.6k+2%-8 years ago
1.3.1
CommonJSBundledDate and time, TypeScript tooling
@js-joda/locale_fr
prebuilt js-joda locale package for locales: fr.*
2.6k---2 months ago
5.2.0
ESM + CommonJSNoneDate and time
spa-router-vir
Simple, serializable, explicit date objects.
2.6k+199%-1 month ago
6.8.0
ESM onlyBundledDate and time
readify
Read directory content with file attributes: size, date, owner, mode
2.6k+319%-6 months ago
11.0.0
ESM onlyNoneDate and time
@cheap-glitch/mi-cron
A microscopic parser for standard cron expressions.
2.5k---1 year ago
2.0.0
ESM onlyBundledDate and time
hijri-date
HijriDate Class behaves like the built-in Date class .. However, it is compatible with Hijri Calendar التقويم الهجري
2.4k+39%-9 years ago
0.2.2
CommonJSNoneDate and time
chronokinesis
Module for testing time-dependent code
2.3k-15%-5 days ago
8.1.0
ESM + CommonJSBundledDate and time, Testing
@leafygreen-ui/date-utils
LeafyGreen UI Kit Date Utils
2.3k---7 months ago
0.3.5
ESM + CommonJSBundledDate and time, UI component libraries
add-subtract-date
Add or subtract a specified time in a date object.
2.2k-20%-1 year ago
1.0.16
CommonJSNoneDate and time
human-date
Return dates and times in easily readable formats
2.2k-28%-10 years ago
1.4.0
CommonJSNoneDate and time
julian
Convert between Date object and Julian dates used in astronomy and history
2.2k-1%-9 years ago
0.2.0
CommonJSNoneDate and time
dayjs-recur
A Day.js plugin for matching and generating recurring dates.
2.2k+115%-4 years ago
1.0.1
ESM + CommonJSNoneDate and time
@kev_nz/daylight
lightweight javascript date formatting
2.2k---6 years ago
1.0.1
CommonJSNoneDate and time
@quillforms/blocklib-date-block
Date block for quillforms
2.2k---1 year ago
4.0.4
ESM + CommonJSNoneDate and time, React
shleemy
Human readable time manipulation. Turn '2021-01-27T22:36:54.757Z' into '6 weeks ago' without going to time prison.
2.1k+481%-5 years ago
1.2.2
CommonJSNoneDate and time
date-fns-duration
Supplemental package for date-fns to add/subtract ISO 8601 durations
2.1k+193%-5 years ago
1.0.4
CommonJSNoneDate and time
parse-human-relative-time
Parse human relative time strings like "next Tuesday 3pm".
2.1k+282%-1 year ago
4.0.0
ESM onlyNoneDate and time
moment-ferie-fr
An extension to moment.js that handles working days in France
2.1k-56%-9 years ago
0.2.1
CommonJSNoneDate and time
formatoid
Tiny and fast module for formatting date objects.
2k-23%-1 year ago
1.2.5
CommonJSNoneDate and time
diff-dates
Make date differences.
1.9k-29%-1 year ago
1.0.15
CommonJSNoneDate and time
date-unit-ms
Millisecond conversions for common date units (seconds, minutes, hours etc).
1.9k-33%-1 year ago
1.1.15
CommonJSNoneDate and time
midday
Converts 24-hour (military) time string to 12-hour (meridiem) time string and vice versa.
1.9k-85%-5 years ago
21.7.6
ESM onlyBundledDate and time
temporal-fun
Modern temporal date utility library, built for Temporal API
1.9k+3641%-2 months ago
0.2.0
ESM onlyBundledDate and time
parse-messy-time
parse messy human date and time strings
1.8k+15%-10 years ago
2.1.0
CommonJSNoneDate and time
daty
A tiny library to manage date objects.
1.8k-35%-1 year ago
1.2.2
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.

  • jest-plugin-clockJest plugin to mock dates, times, and datetimes.
  • is-iso-dateA simple utility to check if a string is an ISO-compliant date.
  • shamsiA Jalali to Gregorian and Gregorian to Jalali converter with no dependency
  • calcdateEvalate a date expression calc`now + 3 days`)!
  • fix-dateSolution for `yyyy-MM-dd HH:mm:ss` is `Invalid Date` in Safari, IE, etc
  • js-excel-date-convertConvert dates between JS and Excel formats
  • sleepjsAsynchronous sleep with better time functions and typescript bindings
  • @yaireo/relative-timejavascript function to transform timestamp or date to local relative-time
  • jest-mock-nowDate.now() as deterministic Jest mock function.
  • just-my-luckA collection of utility functions for working with randomness.
  • chronoshiftA tiny library for shifting time with timezones
  • nano-dateDate class that supports up to nano seconds
  • json-date-parserMinimal function suitable for passing to JSON.parse to revive common date-time strings into Date objects
  • @getdashfy/utilsFormatting and utility functions for Dashfy - numbers, currencies, bytes, dates, times, strings, platform detection, and more
  • pretty-dateformat old JavaScript dates in a “pretty” way. ex : 2 hours ago , 3 minutes ago
  • small-dateTiny (0.8kb) date formatting library with built-in i18n
  • dayjs-with-pluginsDay.js with all plugins and locales added out of the box, no need to use dayjs.extend nor dayjs.locale!
  • micro-strptimemicro strptime implementation on JavaScript
  • @mapbox/timespacecompute fuzzy local time from a location
  • shamsi-date-converterA minimal Jalali to Gregorian and Gregorian to Jalali converter
  • css-timeA tiny library that converts milliseconds to and from CSS time.
  • chai-momentdate assertions for chai, powered by moment
  • cdatea compact calendar date
  • moment-es6Module exporting momentjs library object as ES6 style default field
  • @rnwonder/simple-datejsLight weight date management library
  • moment-recur-tsA momentjs plugin for matching and generating recurring dates.
  • @js-joda/locale_frprebuilt js-joda locale package for locales: fr.*
  • spa-router-virSimple, serializable, explicit date objects.
  • readifyRead directory content with file attributes: size, date, owner, mode
  • @cheap-glitch/mi-cronA microscopic parser for standard cron expressions.
  • hijri-dateHijriDate Class behaves like the built-in Date class .. However, it is compatible with Hijri Calendar التقويم الهجري
  • chronokinesisModule for testing time-dependent code
  • @leafygreen-ui/date-utilsLeafyGreen UI Kit Date Utils
  • add-subtract-dateAdd or subtract a specified time in a date object.
  • human-dateReturn dates and times in easily readable formats
  • julianConvert between Date object and Julian dates used in astronomy and history
  • dayjs-recurA Day.js plugin for matching and generating recurring dates.
  • @kev_nz/daylightlightweight javascript date formatting
  • @quillforms/blocklib-date-blockDate block for quillforms
  • shleemyHuman readable time manipulation. Turn '2021-01-27T22:36:54.757Z' into '6 weeks ago' without going to time prison.
  • date-fns-durationSupplemental package for date-fns to add/subtract ISO 8601 durations
  • parse-human-relative-timeParse human relative time strings like "next Tuesday 3pm".
  • moment-ferie-frAn extension to moment.js that handles working days in France
  • formatoidTiny and fast module for formatting date objects.
  • diff-datesMake date differences.
  • date-unit-msMillisecond conversions for common date units (seconds, minutes, hours etc).
  • middayConverts 24-hour (military) time string to 12-hour (meridiem) time string and vice versa.
  • temporal-funModern temporal date utility library, built for Temporal API
  • parse-messy-timeparse messy human date and time strings
  • datyA tiny library to manage date objects.