-const moment = require('moment');
+import * as Dates from "../services/dates";
let data = {
terms: '',
},
enableDate(optionName) {
- this.search.dates[optionName.toLowerCase()] = moment().format('YYYY-MM-DD');
+ this.search.dates[optionName.toLowerCase()] = Dates.getCurrentDay();
this.dateChange(optionName);
},