Hi,
When making an appointment
like
- StartDate = new DateTime(DateTime.Today.Year,DateTime.Today.Month, DateTime.Today.Day, 20,0,0),
- EndDate = new DateTime(DateTime.Today.Year,DateTime.Today.Month, DateTime.Today.Day, 22,00,0),
or
- StartDate = DateTime.Today.AddHours(20),
- EndDate = DateTime.Today.AddHours(22),
it spills over into tomorrow that now gets an appointment going from 6:00 - 22:00.
If I change the end-time to 21:59 it works as expected.
If I specify the datetime kind to either UTC/Local/etc, it still fails.
If I change the code below from 22 to 23, it still fails
Control.DayView.DayEventsViewStyle.StartTime = 3600 * 6 * 1000;
Control.DayView.DayEventsViewStyle.EndTime = 3600 * 22 * 1000;