Skip to main content
Version: 10.0.0-next.6

Interface: DateLibOptions

Defined in: packages/react-day-picker/src/classes/DateLib.ts:85

The options for the DateLib class.

Extends date-fns format, startOfWeek and endOfWeek options.

Since

9.2.0

Extends

  • FormatOptions.StartOfWeekOptions.EndOfWeekOptions

Properties

Date?

optional Date?: DateConstructor

Defined in: packages/react-day-picker/src/classes/DateLib.ts:90

A constructor for the Date object.


locale?

optional locale?: DayPickerLocale

Defined in: packages/react-day-picker/src/classes/DateLib.ts:92

A locale to use for formatting dates.

Overrides

DateFnsFormatOptions.locale


numerals?

optional numerals?: Numerals

Defined in: packages/react-day-picker/src/classes/DateLib.ts:104

The numbering system to use for formatting numbers.

Since

9.5.0


timeZone?

optional timeZone?: string

Defined in: packages/react-day-picker/src/classes/DateLib.ts:98

A time zone to use for dates.

Since

9.5.0