0👍
So figured it out. Max date should just be the date in date format without time.
maxDate = moment().format("YYYY-MM-DD")
and not
maxDate = moment().format("YYYY-MM-DD HH:mm")
Source:stackexchange.com
0👍
So figured it out. Max date should just be the date in date format without time.
maxDate = moment().format("YYYY-MM-DD")
and not
maxDate = moment().format("YYYY-MM-DD HH:mm")