Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug DatePicker: manually entering a date.
2 replies. Latest Post by Patrick8639 on November 11, 2008.
(0)
Patrick8639
Member
575 points
150 Posts
11-06-2008 12:32 AM |
Hello,
I'm in a country where the date format is JJ.MM.YYYY.
I have a DatePicker in a Silverlight application. The current date (November 6) is displayed as 06.11.2008. I now would like to enter manually a date in the DatePicker:
Patrick
Amanda W...
All-Star
17241 points
1,466 Posts
11-11-2008 4:20 AM |
Hi,
you can try to format the DatePicker's displaydate.
for example:
this.pickdate.Text = this.pickdate.SelectedDate.Value.ToString("dd.MM.yyyy");
11-11-2008 7:43 AM |
Amanda,
the problem is not when the Silverlight application sets the date, it is when the user enters the date.
The application receives the SelectedDateChanged notification, but the date is not correct in the DatePicker control.