Skip to main content

Interface: DateLibOptions

Defined in: src/classes/DateLib.ts:72

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: src/classes/DateLib.ts:77

A constructor for the Date object.


locale?

optional locale: Locale

Defined in: src/classes/DateLib.ts:79

A locale to use for formatting dates.

Overrides

DateFnsFormatOptions.locale


numerals?

optional numerals: Numerals

Defined in: src/classes/DateLib.ts:91

The numbering system to use for formatting numbers.

Since

9.5.0


timeZone?

optional timeZone: string

Defined in: src/classes/DateLib.ts:85

A time zone to use for dates.

Since

9.5.0