@ecwenze1/vue-datepicker
Version:
A clean datepicker made with VueJs
23 lines (19 loc) • 680 B
JavaScript
import dayjs from 'dayjs';
// Dayjs plugins
import advancedFormat from 'dayjs/plugin/advancedFormat';
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
import isToday from 'dayjs/plugin/isToday';
import quarterOfYear from 'dayjs/plugin/quarterOfYear';
import utc from 'dayjs/plugin/utc';
import weekDay from 'dayjs/plugin/weekday';
import weekOfYear from 'dayjs/plugin/weekOfYear';
dayjs.extend(advancedFormat);
dayjs.extend(isSameOrAfter);
dayjs.extend(isSameOrBefore);
dayjs.extend(isToday);
dayjs.extend(quarterOfYear);
dayjs.extend(utc);
dayjs.extend(weekDay);
dayjs.extend(weekOfYear);
export default dayjs;