You need to sign in to do that
Don't have an account?

Event Date
Hi,
On Event object there are two fileds StartDateTime and EndDateTime,
on the aura component (not on the controller) how can i check that enddatetime of the event is greater than the startdatetime by 2 days.
then i want ot display Multiday event.
Thanks
On Event object there are two fileds StartDateTime and EndDateTime,
on the aura component (not on the controller) how can i check that enddatetime of the event is greater than the startdatetime by 2 days.
then i want ot display Multiday event.
Thanks
You can use this #### if((Date.parse(events.EndDateTime) - Date.parse(events.startDateTime) )/ (1000*60*60*24)> = 2)
Please select the best answer if it is working fine for you
Thanks
You can implement this comparator logic in the apex controller itself and send the wrapper list of two properties - event & difference between its dates and then use on the markup of aura component. I hope It will work for you!