The getDate() method converts a pixel position to a date.
Declaration
getDate(pixels [, precise[, isEnd]])
Parameters
- pixels (number) - horizontal pixel position relative to the Scheduler grid; see also getCoords()
- 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