1 2 3 4 5 6 7
import dateFormat from 'dateformat'; import Vue from 'vue'; Vue.filter('due-date', (value) => { const date = new Date(value); return dateFormat(date, 'mmm d, yyyy', true); });