16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
import Vue from 'vue'
|
|
import moment from 'moment';
|
|
import VueMoment from 'vue-moment'
|
|
|
|
moment.locale('en');
|
|
|
|
Vue.use(VueMoment, {
|
|
moment
|
|
});
|
|
// $moment() accessible in project
|
|
|
|
Vue.filter('formatDate', function (value) {
|
|
if (!value) return '';
|
|
return moment(String(value)).format('DD/MM/YYYY HH:mm')
|
|
});
|