Components

DateTime

<DateTime />

Constructor

# <DateTime />

DateTime displays formatted date and prepend, if provided

<DateTime formattedDate="14 June 2017" />
<DateTime formattedDate="14 June 2017" prepend="Published: " />
Parameters:
Name Type Description
params Object

object containing parameters passed to the render prop

prepend String | Component

string or component (icon) that is prepended

formattedDate String

formatted date

View Source atoms/date-time/date-time.tsx, line 28