No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

Date Formats

Playground component

Get time from now

6 years

Get Date

December 24, 2019

Formats

Get time from now

The getTimeFromNow method is used to display the time until a future date in a nice format.

Note: It does not account for past dates. So if passed in a date in the past. It will just show the time since relative to the current time

Get Date

The getDate method is used to take an ISO timestamp and convert it to a human-friendly date format