본문으로 건너뛰기

format_date

Description

날짜 객체를 포맷된 날짜 문자열로 변환합니다. 이는 서버로 날짜 데이터를 전송할 때 유용합니다.

format_date: (date: Date) => string

Parameters

  • date - (required) Date - 포맷이 필요한 날짜 객체

Returns

  • text - (string) - 날짜를 문자열로 표현한 값

Example

var dateToStr = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
scheduler.templates.format_date = function(date){
return dateToStr(date);
};

Details

자세한 내용은 "날짜 형식 지정"를 참고하세요.

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.