@ied/date

# Date (deprecated, please use https://www.npmjs.com/package/date-fns)

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ied/date
Minified + gzip package size for @ied/date in KB

Readme

Date

Date (deprecated, please use https://www.npmjs.com/package/date-fns)

Install

yarn add @ied/date

Use

import { getRelativeDate } from '@ied/date'

const date = '2018-02-13T10:42:21.341Z'
const formatedDate = getRelativeDate(date)

Types

type Locale = 'en' | 'fr' | 'de' | 'da'
type GetRelativeDate = (string: string | Date, locale: Locale) => string

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.