Date Format Swedish

4 posts, 1 answers
  1. Rob
    Rob avatar
    59 posts
    Member since:
    Jan 2012

    Posted 30 Oct Link to this post

    Hi Guys

    I have been told the format of the dates at the top of the 'weekly' view is wrong by the customers in Sweden.. but I don't see anywhere in the culture file to amendit

    Please see screen shot attached.. it should be .. "short day of week", then the day and then the Month.. not the "short day of week", Month and day.

    How can I change this please?

    Thanks

    Rob

     

     

     

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 01 Nov Link to this post

    Hello Rob,

    You can display the dates in this format by setting the views' DateHeaderTemplate as shown below:
    .Views(views =>
    {
        views.DayView(d => d.DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd/MM')#</span>"));
        views.WeekView(w => w.DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd/MM')#</span>"));
        views.MonthView();
        views.AgendaView();
    })


    Regards,
    Ivan Danchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Rob
    Rob avatar
    59 posts
    Member since:
    Jan 2012

    Posted 01 Nov in reply to Ivan Danchev Link to this post

    Thanks Ivan..

    face palm moment.. I assumed it was going to be locale thing!

     

  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    835 posts

    Posted 03 Nov Link to this post

    Hello Rob

    I am glad we were able to help. You can find more information about the different types of templates (the dateHeaderTemplate including) and about other Scheduler configuration options, methods and events in the widget's API reference section of the documentation.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top
UI for ASP.NET MVC is VS 2017 Ready