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

xml_date

warning

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

Description

Этот шаблон преобразует строку из XML файла в объект даты на основе указанного формата.

xml_date: (date: string) => Date

Parameters

  • date - (required) string - строка, которую необходимо распарсить

Returns

  • date - (Date) - объект даты

Example

var cfg = scheduler.config;
var str_to_date = scheduler.date.str_to_date(cfg.xml_date, cfg.server_utc);

scheduler.templates.xml_date = function(date){
return str_to_date(date);
};

Details

примечание

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

var cfg = scheduler.config;
var strToDate = scheduler.date.str_to_date(cfg.date_format, cfg.server_utc);

scheduler.templates.parse_date = function(date){
return strToDate(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.