Time
Formats date and time ISO strings to consistent format. It works across iframes based on customer admin's settings.
Default
Copy Pug Copy HTML Show code Hide code
<e-time datetime="2018-03-22T14:39:15.087"></e-time>
<e-time datetime="2018-03-22T14:39:15.087"></e-time>Variations
Without seconds Copy Pug Copy HTML Show code Hide code[format="ymdhi"]
<e-time datetime="2018-03-22T14:39:15.087" format="ymdhi"></e-time>
<e-time datetime="2018-03-22T14:39:15.087" format="ymdhi"></e-time>API Reference
Properties
| Name | Description | Type | Required | Default value |
|---|---|---|---|---|
| datetime | ISO date string (eg. 2018-03-22T14:39:15.087Z) which will be formatted based on admin config. If timezone is given, date will be displayed in the browser's timezone. | string | - | |
| format | Defines which parts will be shown. Valid values: "ymdhis", (alias: "datetime"), "ymdhi", "ymd" (alias: "date") | string | datetime |