DateInput support for weeknumber

Posted by: seaninglis on 20 September 2022, 6:01 am EST

  • Posted 20 September 2022, 6:01 am EST

    I have a requirement identical to this user:

    i.e. that when a calendar-based date picker is displayed, the week number is shown on the calendar itself.

    Have things move on from then, or is there still no support for showing the week number on the calendar?

    This link from Kendo UI makes the requirement clear:

    If this isn't supported out of the box, is there any way to add the week number manually to the control?
  • Marked as Answer

    Replied 20 September 2022, 10:43 pm EST


    Sorry, but we currently don't have this feature in Calendar Controls or in the InputDate. However, you can use the 'formatItem' property to add weeks count to the control and add some custom CSS to get the desired output.

    You can refer to this sample for full implementation:

  • Replied 20 September 2022, 11:24 pm EST


    We have a few different variations on how to calculate week numbers, but very easy to do with your example as a starting point - thanks for your help.

  • Replied 21 September 2022, 5:39 pm EST


    We are glad that you were able to find the solution. Thank you for sharing the information with us.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels