Added half day support in the calendar.