Format date as year-month-day