You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At minDate validator, accept as parameter a moment date format. Then in date checker/date parser, parse this moment format into a valid date format. Finally use this returned date object for executing date comparison. in minDate validator function.
Something like:
if (obj._d instanceof Date) {
const d = obj._d as Date;
const month = +d.getMonth() + 1;
const day = +d.getDate();
return `${d.getFullYear()}-${formatDayOrMonth(month)}-${formatDayOrMonth(day)}`;
}
The text was updated successfully, but these errors were encountered:
Description
Add moment js date format support.
Describe the solution you'd like
At minDate validator, accept as parameter a moment date format. Then in date checker/date parser, parse this moment format into a valid date format. Finally use this returned date object for executing date comparison. in minDate validator function.
Something like:
The text was updated successfully, but these errors were encountered: