openmrs-esm-core

O3 Framework / FormatDateOptions

Type Alias: FormatDateOptions

FormatDateOptions = object

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:172

Properties

calendar?

optional calendar: string

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:176

The calendar to use when formatting this date.


day

day: boolean

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:192

Whether to include the day number


locale?

optional locale: string

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:180

The locale to use when formatting this date


mode

mode: FormatDateMode

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:185


month

month: boolean

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:194

Whether to include the month number


noToday

noToday: boolean

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:205

Disables the special handling of dates that are today. If false (the default), then dates that are today will be formatted as “Today” in the locale language. If true, then dates that are today will be formatted the same as all other dates.


numberingSystem?

optional numberingSystem: string

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:198

The unicode numbering system to use


time

time: true | false | "for today"

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:190

Whether the time should be included in the output always (true), never (false), or only when the input date is today (for today).


year

year: boolean

Defined in: packages/framework/esm-utils/src/dates/date-util.ts:196

Whether to include the year