import * as UI from "../../lib";
import { Canvas, Meta, Story } from "@storybook/addon-docs";
{UI.widgets.formatDateTime( new Date(), "{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}" )} {UI.widgets.formatDateTime(new Date(), "{Date}.{Month}.{Year}")} {UI.widgets.formatDateTime(new Date(), "{Hours}:{Minutes}:{Seconds}")}By default, converts e.g. '2020-02-19T19:35:28.557Z' to '19:35' if today is 19 Feb 2020, and to 'Feb 19' if not.
{UI.widgets.shortDate("2020-01-01T15:43", true)} {UI.widgets.shortDate("2020-01-01T15:43", false)} {UI.widgets.shortDate(new Date().toISOString(), true)} {UI.widgets.shortDate(new Date().toISOString(), false)}Get a short string representation of the current time
{UI.widgets.shortTime()}Get a string representation of the current time
{UI.widgets.timestamp()}