如何在WPF datepicker中设置自定义dateformat [英] How can I set custom dateformat in WPF datepicker
本文介绍了如何在WPF datepicker中设置自定义dateformat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在我的datepicker控件中将日期设置为dd / MM / yyyy
我尝试过:
我尝试使用binding = binding {date,stringformat = dd / MM / yyyy}它不起作用
解决方案
< blockquote>查看过去的答案:
如何以不同格式显示DatePicker [ ^ ]
更改WPF DatePicker的字符串格式 - Stack Overflow [ ^ ]
.net - 如何更改格式(例如WPF应用程序中DateTimePicker的dd / MMM / yyyy) - Stack Overflow [ ^ ]
I need to set the date as dd/MM/yyyy in my datepicker control
What I have tried:
I tried using binding=binding{date,stringformat=dd/MM/yyyy} it doesn't work
解决方案
See past answers:
How to Display DatePicker in different format[^]
Changing the string format of the WPF DatePicker - Stack Overflow[^]
.net - How to change format (e.g. dd/MMM/yyyy) of DateTimePicker in WPF application - Stack Overflow[^]
这篇关于如何在WPF datepicker中设置自定义dateformat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文