format the calendar