This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

vue-date-filters

1.1.0 • Public • Published

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:

Filter Output
time 12:00 am
shortTime 12:00
longTime 12:00:00 am
date 2018-04-05
shortDate 2018-4-5
writtenDate Apr 5th, 2018
dateTime 2018-04-05 12:00 am
shortDateTime 2018-4-5 12:00 am
writtenDateTime Apr 5th, 2018, 12:00 am
utcToLocal 2018-04-05T00:00:00.000Z
localToUtc 2018-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

Readme

Keywords

Package Sidebar

Install

npm i vue-date-filters

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

19.1 kB

Total Files

13

Last publish

Collaborators

  • jgile