Format Date/Time in XAML in Silverlight

前端 未结 5 637
眼角桃花
眼角桃花 2020-12-08 00:02

I have a Silverlight 4 application. I have a C# DateTime object that I\'m binding to my UI. I want this DateTime to be in the format of dd/mm/yyyy time (TimeZon

5条回答
  •  庸人自扰
    2020-12-08 00:21

    you can also use just

    StringFormat=d
    

    in your datagrid column for date time showing

    finally it will be

       
    

    the out put will look like

    enter image description here

提交回复
热议问题