DayPilot.Scheduler.getDate

The getDate() method of the JavaScript Scheduler converts a pixel position to a date.

You can get the current pixel position (relative to the Scheduler grid) using the getCoords() method.

Declaration

getDate(pixels [, precise[, isEnd]])

Parameters

  • pixels (number) - horizontal pixel position relative to the Scheduler grid

  • precise (boolean) - whether a precise time position (true) or start of the current cell (false) should be returned

  • isEnd (boolean) - how the border position between two cell should be treated: for true, it uses the previous cell; for false, it uses the next cell for the time calculation (applicable only when the timeline is not continuous)

Return Value

DayPilot.Date