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')
});
