format_date

Ņonverts a date object to a date string. Used to send data back to the server

Parameters

dateDatethe date which needs formatting

Example

var dateToStr = gantt.date.date_to_str("%Y-%m-%d %H:%i");
gantt.templates.format_date = function(date){
    return dateToStr (date);
};

Details

Check Date Format Specification.

See also
Back to top