1.0.0 • Published 3 years ago

ember-date-fn-helpers-light v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

ember-date-fn-helpers

Use Date-fns helpers (currently only format) in your Ember project.

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v10 or above

Installation

ember install ember-date-fn-helpers

Usage

The addon provides a handlebar helper:

{{format-date this.someDateObject 'dd.MM.yyyy'}}

optionally you can provide a locale as well, which defaults to 'en' otherwise:

{{format-date this.someDateObject 'dd. MMMM yyyy' 'de'}}
{{!-- which would produce "03. September 2021" as an example --}}

License

This project is licensed under the MIT License.