BaseDate Component Demo
Showcasing timezone handling, UTC conversion, and user-friendly date formatting
Sample Dates
Current Time: 2025-12-07T13:17:17.776Z
UTC Test Date: 2024-01-15T14:30:00.000Z
One Hour Ago: 2025-12-07T12:17:17.776Z
Yesterday: 2025-12-06T13:17:17.776Z
Basic Usage
Default Formatting
13:17
Custom Format
2025-12-07 13:17:17
UTC Conversion
UTC Date (Raw)
Jan 15, 2024
Treated as local time
UTC → Local
Jan 15, 2024
Converted to local timezone
Keep UTC
Jan 15, 2024
Displayed in UTC
Relative Time
Current Time
a few seconds ago
One Hour Ago
an hour ago
Yesterday
a day ago
Hybrid Mode
Recent (Relative + Absolute)
an hour ago (12:17)
Shows both formats for recent dates
Old (Absolute Only)
Dec 7, 2023
Shows absolute format for older dates
Timezone Support
New York
2025-12-07 08:17 z
London
2025-12-07 13:17 z
Tokyo
2025-12-07 22:17 z
Smart Formatting
Smart formatting automatically chooses the best format based on how recent the date is
Today (Time Only)
13:17
This Year
Oct 7, 13:17
Different Year
Dec 7, 2023
Slot Usage (Renderless)
Custom Rendering
an hour ago Live
Status Indicator
Last seen a few seconds ago
Locale Support
English
an hour ago
Slovak
an hour ago
Color-Coded by Recency
The component automatically applies colors based on how recent the date is when using relative mode
Very Recent (< 1 hour)
a few seconds ago
Green color
Recent (< 24 hours)
an hour ago
Primary color
Older (> 24 hours)
a day ago
Tertiary color