roundDate

rounds the specified date to the nearest date in the time scale

Date roundDate(Date date);

Parameters

dateDatethe Date object to round

Returns

Datethe rounded Date object

Example

var today = gantt.roundDate(new Date());

See also
Back to top