WPF format DateTime in TextBlock?

前端 未结 3 804
再見小時候
再見小時候 2020-12-07 22:12

I have a TextBlock that is bound to a DateTime property. How do I configure the format of the date?

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 22:29

    May be helpful to someone:

    
    

    or 24h and 2digits month and year format:

    
    

提交回复
热议问题