This is a migrated thread and some comments may be shown as answers.

Change format of Date in Day View

1 Answer 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alon
Top achievements
Rank 1
Veteran
Alon asked on 04 Apr 2020, 12:46 PM

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?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 08 Apr 2020, 05:14 AM

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.

Regards,
Martin
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.
Tags
Scheduler
Asked by
Alon
Top achievements
Rank 1
Veteran
Answers by
Martin
Telerik team
Share this question
or