Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/utils/date-slider

lib/utils/date-slider

Date formatting utilities for timestamp display.

Provides functions to format timestamps as short dates, ISO date strings, and to parse ISO date strings back to timestamps. Used primarily by the time range slider and other temporal UI components.

Functions

formatShortDate()

formatShortDate(timestamp): string

Format a timestamp to a short date string (e.g., “Jan 2024”)

Parameters

timestamp

number

Returns

string


formatISODate()

formatISODate(timestamp): string

Format a timestamp to ISO date string (YYYY-MM-DD)

Parameters

timestamp

number

Returns

string


parseISODate()

parseISODate(dateStr): number

Parse an ISO date string to timestamp

Parameters

dateStr

string

Returns

number

Last updated on