I want to bind DatePicker
to string property of viewmodel. Trouble is to set proper string format. It's problem-specific to store date in string property.
Binding works fine except string format. My xaml is:
<DatePicker SelectedDate="{Binding Value, StringFormat=dd.MM.yyyy}"/>
I expect of string 15.08.2019
, but string is 8/15/2019 12:00:00 AM
[Edit] This question is not duplicate. Changing string format of DatePicker's TextBox by style only affects itself, not binding.