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.
// 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 (
1.7 kB min+br'Berlin'), abbreviation ('PST'), or custom alias.loose
Lenient fallback parsing for human-written strings like
2.6 kB min+br'March 5, 2026', returningnullwhen unparseable.parse
Strict format-pattern parsing with
2.5 kB min+br{ format }for fixed layouts like'DDMMYYYY'or server logs.ranges
Set operations (
0.6 kB min+brsubtract(),union(),mergeRanges()) for calendar and clock ranges.legacy-date
Legacy
0.3 kB min+brDategetters (getFullYear(),getTime(), and others) onDateTimefor incremental migration.
No plugin matches “”.
Need something else?
Plugins are self-attaching subpath modules that extend the core classes. See Writing a plugin.