Full year (2024)
Month, 1-12 (unlike Date's 0-11)
Day of the month, 1-31
Which kind of QuickBase date this is (on the prototype, so not an own key)
The day as QuickBase reads and writes it: "2024-01-15".
Serializes as the day, the only form a Date field accepts.
The day in the given locale, whatever timeZone the options name.
Optionallocales: LocalesArgumentOptionaloptions: DateTimeFormatOptionsThe day (at midnight) in the given locale, whatever timeZone the options name.
Optionallocales: LocalesArgumentOptionaloptions: DateTimeFormatOptionsThe day, "2024-01-15", so a template string or query filter gets the day.
The same day at UTC midnight, for formatting with timeZone: 'UTC'.
StaticfromStaticfromA Date field's value as QuickBase sends it ("2024-01-15").
StatictodayToday, in the local time zone.
A Date field's value: a calendar day, held as local midnight.
Read it with local methods (
getDate(),toLocaleDateString()), which give the stored day in any time zone, in a browser or on a server. It serializes as the day ("2024-01-15"), and so doesString(date), soJSON.stringifyand template strings carry the day rather than a moment: sent from a server to a browser in another time zone, or upserted back, it stays the same day.toLocaleDateString()andtoLocaleString()show the day whatevertimeZoneoption they are given: a day has no time zone, and formatting local midnight in another zone would show the day before or after. A separateIntl.DateTimeFormat(...).format(date)doesn't go through them and does shift the day; pass{ timeZone: 'UTC' }anddate.toUTCDay()to it.toISOString()is still a moment (local midnight in UTC), and its date part is the day before east of UTC. Use QuickbaseDate.toISODate instead.structuredCloneandpostMessagecopy it as a plain Date; make it a QuickbaseDate again with QuickbaseDate.from before upserting it.