날짜 객체를 특정 템플릿에 따라 문자열로 변환합니다. 주로 서버로 데이터를 전송할 때 사용됩니다.
date | Date | 포맷팅이 필요한 날짜 객체 |
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);
};
이 템플릿은 더 이상 사용되지 않습니다. 대신 format_date 문서를 참고하세요:
var dateToStr = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
scheduler.templates.format_date = function(date){
return dateToStr (date);
};
v5.2 버전부터 deprecated 되었습니다.
맨 위로