Change format of Date in Day View

2 posts, 0 answers
  1. Alon
    Alon avatar
    25 posts
    Member since:
    Aug 2015

    Posted 04 Apr 2020 Link to this post

    I would like to change the format of the date in the "Day" view so that it shows the Day of week (ie. Mon, Tue, Wed, and so on).

    I have tried setting the dateHeaderTemplate but it only changed the format in the week view.

    I have also tried changing views.selectedDateFormat and views.selectedShortDateFormat none of which had any impact.


    Any guidance?

  2. Martin
    Martin avatar
    297 posts

    Posted 08 Apr 2020 Link to this post

    Hello Alon,

    You can change the date using dateHeaderTemplate:

    views: [
          type: "day",
          dateHeaderTemplate: kendo.template("<strong>#=kendo.toString(date, 'MMM dd, ddd </br> yyyy')#</strong>")

    Here is a small Dojo example for reference.

    Let me know if that works for you.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top