@qrohlf/smart-date

1.1.1 • Public • Published

smart-date

A small utility to format ISO8601 dates and date ranges into nice human-readable strings.

quickstart

npm i @qrohlf/smart-date
const smartDate = require('@qrohlf/smart-date')

smartDate('2015-07-04') // => 'July 4th, 2017'

smartDate(['2017-07-04', '2017-07-05 09:30']) // => 'July 4th - July 5th, 9:30 am, 2017'

all features

see the tests for the full range of input & options that smartDate can handle

Readme

Keywords

Package Sidebar

Install

npm i @qrohlf/smart-date

Weekly Downloads

18

Version

1.1.1

License

MIT

Unpacked Size

20.3 kB

Total Files

5

Last publish

Collaborators

  • qrohlf