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

DatePicker calendar start with Sunday

1 Answer 56 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Nick Jacka
Top achievements
Rank 1
Nick Jacka asked on 17 Feb 2012, 12:30 AM
Hi there,

Has anyone worked out how to make the days in the calendar of the DatePicker start with a Sunday instead of a Monday?

Regards,
Nick

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Feb 2012, 07:23 AM
Hello Nick,

Try the following code.
C#:
public MainPage()
{
 InitializeComponent();
 CultureInfo cultureInfo = new CultureInfo("en-US");
 DateTimeFormatInfo dateInfo = new DateTimeFormatInfo();
 dateInfo.FirstDayOfWeek = DayOfWeek.Sunday;
 cultureInfo.DateTimeFormat = dateInfo;
 this.pkr.Culture = cultureInfo;
}

-Shinu.
Tags
DatePicker
Asked by
Nick Jacka
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or