Skip to content

Date/time range
@localizer/format 1.0.1

dateTimeRange ( start: Date | number , end: Date | number )

  • start - Start of the range (lower bound).
  • end - End of the range (upper bound).

Both arguments can be JavaScript Date objects or numeric timestamps (milliseconds since January 1, 1970, 00:00:00 UTC).

This formatter displays a range of dates in a format that respects the user's locale settings.

Examples: