Invalid dates: the correct format is yyyy-mm-dd and the end date have to be greater than the start one