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

DatePicker configuring the first day of week

5 Answers 1040 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Farhan
Top achievements
Rank 1
Farhan asked on 21 Feb 2012, 06:06 PM
Is there any way to set the first day of week for kendoDatePicker?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Jean-Pascal van der Endt
Top achievements
Rank 1
answered on 31 May 2012, 09:03 AM
Hi Telerik,

Setting the first day of the week for the calendar/datepicker control would be useful for me as well. I know it was available in the RadControls, so I hope there is a way to set it, or that it will be added in a future version.

Please let us know.
0
Iliana Nikolova
Telerik team
answered on 31 May 2012, 02:11 PM
Hello Jean,

The Kendo UI Calendar and DatePicker components depend on the current culture. You could configure them via the culture() method. For example you could set the first day of the week using the following code snippet: 
<input id="datepicker" />
...
<script>
$(document).ready(function() {
  kendo.culture().calendar.firstDay= 2
  // create DatePicker from input HTML element
  $("#datepicker").kendoDatePicker();
  ....
});
</script>

Kind regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Morten
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 28 Feb 2016, 09:51 AM

Hello Iliana

I wanted to add:

kendo.culture().calendar.firstDay = 2

to my typescript file. However I'm getting an error message. Please see attached screen shot.

 

 

0
Petyo
Telerik team
answered on 03 Mar 2016, 09:57 AM
Hello,

appologies for misleading you. The firstDay field is part of the days object - like this:

  kendo.culture().calendar.days.firstDay= 2
 
Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Grünther
Top achievements
Rank 1
answered on 30 Jan 2017, 10:53 AM

kendo.culture().calendar.firstDay = 1;

Tags
Date/Time Pickers
Asked by
Farhan
Top achievements
Rank 1
Answers by
Jean-Pascal van der Endt
Top achievements
Rank 1
Iliana Nikolova
Telerik team
Morten
Top achievements
Rank 1
Iron
Veteran
Iron
Petyo
Telerik team
Grünther
Top achievements
Rank 1
Share this question
or