# plain/format

Industry: Core

- [`formatCalendar`](/gmt/reference/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`](/gmt/reference/plain/format/formatDate/): Return a localized string for a PlainDate ISO input using Intl options.
- [`formatDateRange`](/gmt/reference/plain/format/formatDateRange/): Format a plain date range using the Temporal Intl.DateTimeFormat formatRange API.
- [`formatDateTime`](/gmt/reference/plain/format/formatDateTime/): Return a localized string for a PlainDateTime ISO input using Intl options.
- [`formatDateTimeRange`](/gmt/reference/plain/format/formatDateTimeRange/): Format a plain datetime range using the Temporal Intl.DateTimeFormat formatRange API.
- [`formatDateTimeToParts`](/gmt/reference/plain/format/formatDateTimeToParts/): Return the locale-formatted parts of a PlainDateTime.
- [`formatDateToParts`](/gmt/reference/plain/format/formatDateToParts/): Return the locale-formatted parts of a PlainDate.
- [`formatMonthDay`](/gmt/reference/plain/format/formatMonthDay/): Return a localized string for a month-day (`--MM-DD` or `MM-DD`) using Intl options.
- [`formatRelativeDate`](/gmt/reference/plain/format/formatRelativeDate/): Format the relative time between a plain date and a reference date.
- [`formatRelativeDateTime`](/gmt/reference/plain/format/formatRelativeDateTime/): Format the relative time between a plain date-time and a reference date-time.
- [`formatRelativeTime`](/gmt/reference/plain/format/formatRelativeTime/): Format the relative time between a plain time and a reference time.
- [`formatSqlDateTime`](/gmt/reference/plain/format/formatSqlDateTime/): Format a plain ISO 8601 datetime string as a SQL timestamp literal without a time zone — the `YYYY-MM-DD HH:MM:SS[.fff]` form of standard SQL `TIMESTAMP` and MySQL/SQLite `DATETIME` columns.
- [`formatTime`](/gmt/reference/plain/format/formatTime/): Return a localized string for a PlainTime ISO input using Intl options.
- [`formatYearMonth`](/gmt/reference/plain/format/formatYearMonth/): Return a localized string for a year-month (`YYYY-MM`) using Intl options.

## Types

- [`FormatCalendarOptions`](/gmt/reference/plain/format/formatCalendar/#formatcalendaroptions): Options for `formatCalendar`: the date-time the value is compared with, and the style of the time-of-day half.
- [`FormatRelativeDateOptions`](/gmt/reference/plain/format/formatRelativeDate/#formatrelativedateoptions): Options for `formatRelativeDate`: the reference date, the display unit, the rounding and the wording.
- [`FormatRelativeDateTimeOptions`](/gmt/reference/plain/format/formatRelativeDateTime/#formatrelativedatetimeoptions): Options for `formatRelativeDateTime`: the reference date-time, the display unit, the rounding and the wording.
- [`FormatRelativeTimeOptions`](/gmt/reference/plain/format/formatRelativeTime/#formatrelativetimeoptions): Options for `formatRelativeTime`: the reference time, the display unit, the rounding and the wording.
- [`RelativeDateTimeUnit`](/gmt/reference/plain/format/formatRelativeDateTime/#relativedatetimeunit): Full 7-member `RelativeUnit` for `PlainDateTime`-based formatting.
- [`RelativeDateUnit`](/gmt/reference/plain/format/formatRelativeDate/#relativedateunit): Narrow `RelativeUnit` for `PlainDate`-based formatting.
- [`RelativeTimeUnit`](/gmt/reference/plain/format/formatRelativeTime/#relativetimeunit): Narrow `RelativeUnit` for `PlainTime`-based formatting.
