Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.02 KB

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.