mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-05-05 22:46:02 +02:00
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('es');
|
|
|
|
Vue.use(VueMoment, {
|
|
moment
|
|
});
|
|
// $moment() accessible in project
|
|
|
|
Vue.filter('formatDate', function (value) {
|
|
if (!value) return '';
|
|
return moment(String(value)).format('YYYY-MM-DD HH:mm')
|
|
});
|