Moment doesn't seem to be parsing my date calculations correctly
The code is suppposed to receive the age of a baby and make sure that it’s not a date in the future and that the baby is not older than 2 years old. import moment from "moment"; function datevalidation(baby_dob, current_date, diff) { if ( !baby_dob.isBetween(current_date, current_date.clone().subtract(2, "years")) ) { if (diff > 0) { return… Read More Moment doesn't seem to be parsing my date calculations correctly