Date to current date

Doesnt let the date go past the current date