Skip to content

cupertino-files / DateFieldOptions

Interface: DateFieldOptions ​

Defined in: src/tswp/fields.ts:211

Properties ​

date? ​

optional date?: Date

Defined in: src/tswp/fields.ts:213

The moment the field represents. Defaults to now.


dateStyle? ​

optional dateStyle?: number

Defined in: src/tswp/fields.ts:219

One of DateTimeStyle; LONG by default.


format? ​

optional format?: string

Defined in: src/tswp/fields.ts:215

Apple's date pattern, e.g. "MMMM d, y".


locale? ​

optional locale?: string

Defined in: src/tswp/fields.ts:217

BCP-47 identifier the app formats with, e.g. "en".


timeStyle? ​

optional timeStyle?: number

Defined in: src/tswp/fields.ts:221

One of DateTimeStyle; NONE by default — a date, not a time.


updatePlan? ​

optional updatePlan?: number

Defined in: src/tswp/fields.ts:223

One of DateTimeUpdatePlan; AUTO by default.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.