format dates for getCalendarEvents()