1.1.1 • Published 7 years ago

@qrohlf/smart-date v1.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

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

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

9 years ago

1.0.0

9 years ago