Changing the string format of the WPF DatePicker

前端 未结 9 1772
广开言路
广开言路 2020-11-27 14:56

I need to change the string format of the DatePickerTextBox in the WPF Toolkit DatePicker, to use hyphens instead of slashes for the seperators.

Is there a way to ov

9条回答
  •  一整个雨季
    2020-11-27 15:21

    Format exhibited depending on the location but this can be avoided by writing this:

      ValueStringFormat="{}{0:MM'-'yy}" />
    

    And you will be happy!(dd'-'MM'-'yyy)

提交回复
热议问题