This is a line of code declaring mine DatePickerTextBox:
<DatePickerTextBox Text="{Binding dateOfBirth, StringFormat=dd-MM-yyyy}" />
(pay attention to StringFormat=dd-MM-yyyy)
When DatePickerTextBoxempty with a placeholder <Enter text here>, and I write in it something like:
01-02-0003
... after clicking outside, the DatePickerTextBoxdisplayed text automatically changes to:
02-01-0003
(i.e.: month and day automatically switch )
How can I solve this problem?
source
share