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부터 deprecated로 표시됨
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.