Skip to main content

xml_format

warning

The template is deprecated

Description

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

xml_format: (date: Date) => string

Parameters

  • date - (required) Date - the date which needs formatting

Returns

  • text - (string) - a text representation of the date

Example

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);
};

Details

note

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);
};

Change log

  • deprecated since v5.2
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.