BaseDate Component Demo
Showcasing timezone handling, UTC conversion, and user-friendly date formatting
Sample Dates
Current Time: 2026-04-15T02:25:38.141Z
UTC Test Date: 2024-01-15T14:30:00.000Z
One Hour Ago: 2026-04-15T01:25:38.141Z
Yesterday: 2026-04-14T02:25:38.141Z
Basic Usage
Default Formatting
02:25
Custom Format
2026-04-15 02:25:38
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 (01:25)
Shows both formats for recent dates
Old (Absolute Only)
Apr 15, 2024
Shows absolute format for older dates
Timezone Support
New York
2026-04-14 22:25 z
London
2026-04-15 03:25 z
Tokyo
2026-04-15 11:25 z
Smart Formatting
Smart formatting automatically chooses the best format based on how recent the date is
Today (Time Only)
02:25
This Year
Feb 15, 02:25
Different Year
Apr 15, 2024
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