开发者

WPF - ListBox show longdate instead of shortdate by objects inside?

开发者 https://www.devze.com 2023-03-22 01:55 出处:网络
I am adding date objects in a ListBox. However, the shortdate are shown but i want to show the longda开发者_如何学Pythonte is there a simple way ?

I am adding date objects in a ListBox. However, the shortdate are shown but i want to show the longda开发者_如何学Pythonte is there a simple way ?

Thanks.


Set the ItemStringFormat property to "D" (long date pattern)

0

精彩评论

暂无评论...
验证码 换一张
取 消