Skip to content

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.
  • 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 — the YYYY-MM-DD HH:MM:SS[.fff] form of standard SQL TIMESTAMP and MySQL/SQLite DATETIME columns.
  • formatTime: Return a localized string for a PlainTime ISO input using Intl options.