Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
formatDate(date, fmt) {
if (isObject(this.format) && typeof this.format.stringify === 'function') {
return this.format.stringify(date, fmt);
}
return format(date, fmt, { locale: this.locale.formatLocale });
},
// transform the outer value to inner date
formatDate(date, fmt) {
return format(date, fmt, { locale: this.t('formatLocale') });
},
handleCellClick(evt) {
formatDate(date, fmt) {
return format(date, fmt, { locale: this.t('formatLocale') });
},
scrollToSelected() {
formatDate(date, fmt) {
return format(date, fmt, { locale: this.t('formatLocale') });
},
initCalendar() {
formatDate(date, fmt) {
return format(date, fmt, { locale: this.t('formatLocale') });
},
isDisabled(date) {
parseDate(value, fmt) {
if (isObject(this.format) && typeof this.format.parse === 'function') {
return this.format.parse(value, fmt);
}
const backupDate = new Date();
return parse(value, fmt, { locale: this.locale.formatLocale, backupDate });
},
formatDate(date, fmt) {
getWeek(date, options) {
if (isObject(this.format) && typeof this.format.getWeek === 'function') {
return this.format.getWeek(date, options);
}
return getWeek(date, options);
},
parseDate(value, fmt) {