DatePickerTextBox switching day and month

Viewed 1927

This is the line of code that declares my DatePickerTextBox:

<DatePickerTextBox Text="{Binding dateOfBirth, StringFormat=dd-MM-yyyy}" />

(notice the StringFormat=dd-MM-yyyy)

When the DatePickerTextBox is empty with the placeholder <Enter text here>, and I write in it something like:

01-02-0003

...after clicking outside the DatePickerTextBox, the displayed text automatically changes to:

02-01-0003

(that is: automatically switching month and day)

How can I solve this issue?

1 Answers
Related