day_date

指定在 Week 和 Units 视图中 X 轴使用的日期格式

string day_date;

Example

scheduler.config.day_date = "%F %j";
...
scheduler.init('scheduler_here', new Date(2013, 7, 5), "week");


Default value:

"%D, %F %j"
Applicable views:周视图, Units 视图
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);
};
See also
返回顶部