Consistent and locale-aware date and time formatting
DateTime
component renders locale-aware customizable date and time strings.
💡️
See DateTime story.
Import
import {DateTime} from 'koval-ui';
Preview
DateTime demo
Provide a value to render
Component expexts value
prop as string representing time stamp in a simplified format based on ISO 8601.
const ISOString = new Date('03 October 2012 12:36 UTC').toISOString(); // => "2012-10-03T12:36:00.000Z"