rounds the specified date to the nearest date in the time scale
var today = gantt.roundDate(new Date());