fix date format to y-m-d