onPopUpOpen function when trigger by calendar return a endDate 1 day after the click

When i trigger in my scheduler function

(popupOpen)="onPopupOpen($event)"


The args.data.endTime is always one day after the day i selected
if i select from May 6 to May 7 the data object return a day after for the endTime

endTime =
endTime =
Thu May 08 2025 00:00:00 GMT-0600 (Central Standard Time)
EndTime =Thu May 08 2025 00:00:00 GMT-0600 (Central Standard Time)
groupIndex =1
isAllDay =false
IsAllDay =false
ProjectId =1
startTime =Tue May 06 2025 00:00:00 GMT-0600 (Central Standard Time)
StartTime =Tue May 06 2025 00:00:00 GMT-0600 (Central Standard Time)
TaskId =1

1 Reply

AK Ashokkumar Karuppasamy Syncfusion Team May 7, 2025 01:38 PM UTC

Hi Arturo Martinez,
Thanks for reaching out us!

When you select a date range from May 6 to May 7 in the scheduler, the EndTime returned is 12:00 AM on May 8. This is expected behavior and not a bug.

In scheduling components like calendars, the end date is typically exclusive. That means:

  • The event starts at the StartTime (e.g., May 6, 12:00 AM).
  • The event ends just before the EndTime (e.g., May 8, 12:00 AM), which covers all of May 6 and May 7.

So, when you select May 6–7, you're actually selecting two full days, and the scheduler sets EndTime to the beginning of the next day to represent that range completely.

Regards,
Ashok


Loader.
Up arrow icon