Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
How to set the start and end time for an appointment
posted

I am trying to set the start time to 8:00am and the end time to 9:00 but everytime I click the monthly calendar to add a new appointment it is set to All Day.  I do not see how to turn that off.  Here is hte code I am using:

 

 

 

 

 

 

private

 

 

 

void DM_ActivityDialogDisplaying(object sender, ActivityDialogDisplayingEventArgs

e)

{

 

 

 

if (e.Activity.Id == null

)

{

 

e.Activity.Start =

 

 

new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime

.Now.Day, 8, 0, 0).ToUniversalTime();

e.Activity.End =

 

 

new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime

.Now.Day, 9, 0, 0).ToUniversalTime()

}

}

 

 

 

 

Parents Reply Children
No Data