跳转到主要内容

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.