Skip to content

Files

datetime2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 2, 2024
Feb 26, 2025
Mar 20, 2025
Jun 9, 2022
Jun 9, 2022
Oct 8, 2024
Dec 11, 2024
Mar 13, 2025

Blueprint Date & Time Components (V2)

Blueprint is a React UI toolkit for the web.

This package contains next-generation components for interacting with dates & times.

Compared to the "V1" components in @blueprintjs/datetime, the "V3" components in this package:

  • use react-day-picker v8 instead of v7 (this unblocks React 18 compatibility)
  • are easier to internationalize & localize since date-fns is now a dependency (instead of localeUtils, you can specify a locale code and we'll automatically load the date-fns locale object)

This package also contains legacy APIs which are re-exported aliases for components from @blueprintjs/datetime v5.x. These "V2" names are backwards-compatible with @blueprintjs/datetime2 v0.x.

To migrate to the latest "V3" components, follow the react-day-picker v8 migration guide.

Note that @blueprintjs/datetime2 will transitively install multiple versions of react-day-picker. These two copies of react-day-picker can happily exist together in a single JS bundle, and with the help of tree-shaking, you can avoid bundling both if you only use the deprecated "V1" / "V2" datetime components or only use the new "V3" APIs.