UI Components > Time


vue-moment-jalaali 0.18


Jalaali Moment.js filters for your Vue.js project
  • datetime
  • jalaali
  • momentjs
  • vue
  • vuejs
  • custom
  • date
  • time
  • filter
  • moment
  • moment_js
  • moment_jalaali_js
  • jalali
  • persian
  • khorshidi
  • shamsi
  • calendar
  • conversion
  • convert
last commit 8 years ago
59
Stargazers

Watchers
59
Open issues
0
24602
Downloads

Last 30 days
2610
Releases
5
48
Final Score

Quality
51
Popularity
10
Maintenance
84

vue-moment-jalaali

Jalaali Moment.js filters for your Vue.js project. This project is based on vue-moment and moment-jalaali.

Installation

You can install it via NPM:

npm install vue-moment-jalaali

And require plugin like so:

Vue.use(require('vue-moment-jalaali'));

or load vue-moment-jalaali.min.js along with moment-jalaali.js the old fashioned way.

Usage

Simply set moment as the filtering function and you're good to go. At least one argument is expected, which the filter assumes to be a format string if the argument doesn't match any of the other filtering methods.

Vue.js 2.x.x

<span>{{ someDate | moment("jYYYY/jM/jD HH:mm") }}</span>
<!-- or create a new date from 'now' -->
<span>{{ new Date() | moment("jYYYY/jM/jD HH:mm") }}</span>

Vue.js 1.x.x

<span>{{ someDate | moment "jYYYY/jM/jD HH:mm" }}</span>
<!-- or create a new date from 'now' -->
<span>{{ new Date() | moment "jYYYY/jM/jD HH:mm" }}</span>

For more information, usage and format, you can see these repositories: