changed the date format to y-m-d