xml_date
警告
此功能已棄用。
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);
};
Related Guides
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.