How to access date time information from Calendar onEventClick Asked by Anonymous3 years ago. When clicking a calendar event, how can I find out what is the date time where the user clicked? I can access event start and end, but I need to access the information what time during the event has been clicked? how-tojavascript dp-evenclick.png
Answer posted by Dan Letecky [DayPilot]3 years ago. The latest sandbox build (2023.3.5726) now supports a new getCoords() method which you can use to get the date/time value corresponding to the current mouse position: onEventClick: args => { const coords = dp.getCoords(); const currentTime = coords?.time; // ... } See also: https://release.daypilot.org/changes/js/