Vlad
Vlad

Reputation: 2773

Why DatePicker component is flipping day and month on its own?

Developing C#/WPF application with Visual Studio 2010.

I have several date pickers and when I type the day and month with keyboard instead of choosing with the calendar, the DatePicker component flips the day and month on its own.

We have set a custom format for the DatePicker to show only day and month but not year, although it has preset year, hidden from view.

StringFormat='dd/MM'

How can I tell this component to not flip the day and month?

Is the custom format causing this problem?

Upvotes: 0

Views: 309

Answers (1)

Salvador Ruiz Guevara
Salvador Ruiz Guevara

Reputation: 184

Use the CultureInfo.DefaultThreadCurrentCulture to set the culture of the app. Probably your machine has a different culture to the one you are expecting.

Upvotes: 1

Related Questions