day_date
Description
指定在 Week 和 Units 视图中 X 轴使用的日期格式
day_date: string
Example
scheduler.config.day_date = "%F %j";
...
scheduler.init('scheduler_here', new Date(2013, 7, 5), "week");
Default value: "%D, %F %j"
Applicable views: Week view, Units view
Details

此配置仅在调度器首次初始化之前设置时生效:
scheduler.config.day_date = "%F %j";
scheduler.init('scheduler_here', new Date(2020, 7, 5), "day");
若要在初始化后更新日期格式,需要重写 day_date 模板:
var formatDayDate = scheduler.date.date_to_str("%F %j");
scheduler.templates.day_date = function(date) {
return formatDayDate(date);
};
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.