native-dates

Plugins

Core covers every date and time type, ranges, time zones, formatting, and relative time. Import subpath plugins only when you need them. Select plugins below to measure their combined bundle size and copy the imports.

app.js
// select plugins below to add them here
import { today } from 'native-dates';

today();
Selected
0 of 5
Plugins add
0.0 kB min+br
Total with core
14.9 kB min+br
  • zones

    Time zone lookups by city ('Berlin'), abbreviation ('PST'), or custom alias.

    1.7 kB min+br
  • loose

    Lenient fallback parsing for human-written strings like 'March 5, 2026', returning null when unparseable.

    2.6 kB min+br
  • parse

    Strict format-pattern parsing with { format } for fixed layouts like 'DDMMYYYY' or server logs.

    2.5 kB min+br
  • ranges

    Set operations (subtract(), union(), mergeRanges()) for calendar and clock ranges.

    0.6 kB min+br
  • legacy-date

    Legacy Date getters (getFullYear(), getTime(), and others) on DateTime for incremental migration.

    0.3 kB min+br

Need something else?

Plugins are self-attaching subpath modules that extend the core classes. See Writing a plugin.