1.1.0 • Published 6 years ago

vue-date-filters v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Filters for formatting date, datetime, and time.

Latest Version on NPM Software License CircleCI

A Vue.js plugin to display dates, datetimes, and times. Uses moment.js.

The full list of included filters:

FilterOutput
time12:00 am
shortTime12:00
longTime12:00:00 am
date2018-04-05
shortDate2018-4-5
writtenDateApr 5th, 2018
dateTime2018-04-05 12:00 am
shortDateTime2018-4-5 12:00 am
writtenDateTimeApr 5th, 2018, 12:00 am
utcToLocal2018-04-05T00:00:00.000Z
localToUtc2018-04-05T05:00:00.000Z

Demo

See "docs" directory for example.

Installation

You can install the package via yarn:

yarn add vue-date-filters

or npm:

npm install vue-date-filters --save

Usage

import VueDates from "vue-date-filters";
Vue.use(VueDates);

In your template:

{{ "2018-14-18" | longDate }}

Testing

npm test

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please contact John Gile.

License

The MIT License (MIT). Please see License File for more information.

Credits

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago