Is every selected date less than the current date?
I have a function where user selects dates and it gets stored in an array object. There is check to see if user does not select dates that are already passed. It should ideally allow user to select current date…