a date object is converted into a string in conformity with this template. Used to send data back to the server

dateDatethe date which needs formatting


var cfg = scheduler.config;
var date_to_str = scheduler.date.date_to_str(cfg.xml_date, cfg.server_utc);
scheduler.templates.xml_format = function(date){
    return date_to_str(date);


The template is deprecated. Use format_date instead:

var dateToStr = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
scheduler.templates.format_date = function(date){
    return dateToStr (date);
See also
Change log

deprecated since v5.2

Back to top