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