parse_date
Description
날짜 문자열을 Date 객체로 변환합니다
parse_date: (date: string) => Date
Parameters
date- (required) string - 변환이 필요한 문자열
Returns
date- (Date) - Date 객체
Example
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);
};
Details
이 함수는 scheduler.load() 또는 **scheduler.parse()**가 이벤트의 start_date/end_date 속성을 문자열로 파싱할 때 호출됩니다. 기본 파서가 작동하지 않거나 날짜 형식이 다를 경우 이 함수를 오버라이드할 수 있습니다. 자세한 내용은 "날짜 형식 지정"를 참고하세요.
Related API
Related Guides
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.