a date object is converted into a string in conformity with this template. Used to send data back to the server
date | Date | the 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);
};
deprecated since v5.2
Back to top