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
395
getting EndDateTime of activity in webmonthview from client side
posted

 hi

      i am using OpenCalendarEvent(oScheduleInfo, oEvent, oDialog, oActivity) event  for webmonthview but my problem is

i need EndDateTime  of activity.but i am not getting the oActivity.getEndDateTime()  

only i am getting     oActivity.getStartDateTime(),   oActivity.getDuration()........... etc

 

please give me solution how to get  EndDateTime of activity when OpenCalendarEvent fired

 

 

 

Parents
  • 40030
    Offline posted

    Hello,

    This method isn't provided on the client, as it's a calculated value, however you should be able to simply calculate it yourself using the following code:

     var endDate = new Date();

    endDate.setTime(appointment.getStartDateTime().getTime());

    endDate.setMinutes(endDate.getMinutes() + parseInt(appointment.getDuration()));

    Hope this helps.

    -SteveZ 

     

Reply Children
No Data