Updated CastData in the DB and in the HTML for forcing datatype Date for the Date.