Перейти к основному содержимому

xml_format

warning

Эта функицональность устарела

Description

Объект даты преобразуется в строку согласно этому конкретному шаблону. В основном используется при отправке данных обратно на сервер.

xml_format: (date: Date) => string

Parameters

  • date - (required) Date - дата, которую нужно отформатировать

Returns

  • text - (string) - строковое представление даты

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

примечание

Этот шаблон устарел. Пожалуйста, обратитесь к format_date вместо него:

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

Change log

  • устарел с версии 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.