Home Examples Charts Dashboard Projects Menu

Vue.js examples
Learn Vue.js

vue time tag

Vue: Step-By-Step Guide To Mastering Vue.js From Beginner To Advanced (Vue.js, Learning Vue js 2)

This component is based on the html

The vue time tag makes a human readable date. The element understands machine date formats.
This is done in the code:

humanDate () {
return moment(this.date).format(this.format);
machineDate () {
return moment(this.date).toISOString();

Github: https://github.com/wiemann/vue-time-tag


You need npm or yarn to install this component.

npm install --save vue-time-tag
yarn add vue-time-tag

In your main.js (where you initialize your Vue application)

import TimeTag from \’vue-time-tag\’


  • Moment.js
  • Vue.js

← vue tweet app vue layout →

© vuejsexamples.net - Privacy Policy - Cookie Policy