【问题标题】:How to display weekdays in DayPilot Event calendar如何在 DayPilot 事件日历中显示工作日
【发布时间】:2015-06-16 12:40:13
【问题描述】:

有人知道如何在 DayPilot 活动日历中显示工作日(星期一、星期二……)吗?我只能显示日期。 http://www.daypilot.org/calendar-lite/http://code.daypilot.org/17910/html5-event-calendar-open-source

【问题讨论】:

    标签: daypilot


    【解决方案1】:

    您可以使用 headerDateFormat 设置列标题中使用的日期格式。

    “dddd”格式字符串将显示星期几:

    <div id="dp"></div>
    
    <script>
    
      var dp = new DayPilot.Calendar("dp");
      // ...
      dp.headerDateFormat = "dddd"; // day of week, long format (e.g. "Monday")
      dp.init();
    
    </script>
    

    另请参阅文档中的 Header Date Format 主题。

    【讨论】:

    • 谢谢。我相信这是正确的答案。就我而言,它对我没有帮助,因为文档中的某些功能在我的代码中不起作用,只有一些起作用。
    猜你喜欢
    • 2017-10-06
    • 2017-10-14
    • 2016-01-04
    • 2015-07-16
    • 2021-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多