이 템플릿은 XML 파일에서 가져온 문자열을 지정된 형식에 따라 날짜 객체로 변환합니다.
date | string | 파싱이 필요한 문자열 |
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);
};
이 템플릿은 더 이상 권장되지 않습니다. 대신 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);
};
v5.2부터 deprecated로 표시됨
맨 위로