parse_date

날짜 문자열을 Date 객체로 변환합니다

datestring변환이 필요한 문자열

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 속성을 문자열로 파싱할 때 호출됩니다. 기본 파서가 작동하지 않거나 날짜 형식이 다를 경우 이 함수를 오버라이드할 수 있습니다. 자세한 내용은 날짜 형식 지정를 참고하세요.

Date 객체에 대해 더 읽어보기.

See also
맨 위로