changed date format to YYYY-MM-DD