plain/format
formatCalendar: Format a plain date-time as a relative day label plus time-of-day, e.g. “Tomorrow at 2:30 PM”.formatDate: Return a localized string for a PlainDate ISO input using Intl options.formatDateRange: Format a plain date range using the Temporal Intl.DateTimeFormat formatRange API.formatDateTime: Return a localized string for a PlainDateTime ISO input using Intl options.formatDateTimeRange: Format a plain datetime range using the Temporal Intl.DateTimeFormat formatRange API.formatDateTimeToParts: Return the locale-formatted parts of a PlainDateTime.formatDateToParts: Return the locale-formatted parts of a PlainDate.formatMonthDay: Return a localized string for a month-day (--MM-DDorMM-DD) using Intl options.formatRelativeDate: Format the relative time between a plain date and a reference date.formatRelativeDateTime: Format the relative time between a plain date-time and a reference date-time.formatRelativeTime: Format the relative time between a plain time and a reference time.formatSqlDateTime: Format a plain ISO 8601 datetime string as a SQL timestamp literal without a time zone — theYYYY-MM-DD HH:MM:SS[.fff]form of standard SQLTIMESTAMPand MySQL/SQLiteDATETIMEcolumns.formatTime: Return a localized string for a PlainTime ISO input using Intl options.formatYearMonth: Return a localized string for a year-month (YYYY-MM) using Intl options.
FormatCalendarOptions: Options forformatCalendar: the date-time the value is compared with, and the style of the time-of-day half.FormatRelativeDateOptions: Options forformatRelativeDate: the reference date, the display unit, the rounding and the wording.FormatRelativeDateTimeOptions: Options forformatRelativeDateTime: the reference date-time, the display unit, the rounding and the wording.FormatRelativeTimeOptions: Options forformatRelativeTime: the reference time, the display unit, the rounding and the wording.RelativeDateTimeUnit: Full 7-memberRelativeUnitforPlainDateTime-based formatting.RelativeDateUnit: NarrowRelativeUnitforPlainDate-based formatting.RelativeTimeUnit: NarrowRelativeUnitforPlainTime-based formatting.
Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.