开发者

Format Time in Xaml

开发者 https://www.devze.com 2023-01-24 18:06 出处:网络
I need to format a field in the datagrid in xaml to look like \"10 march 2010 19:50\" at the moment i have

I need to format a field in the datagrid in xaml to look like "10 march 2010 19:50" at the moment i have

   Binding="{Binding Path=MyDate, StringFormat=\{0:d MMM yyyy\}, Mode=OneWay}" /&开发者_StackOverflow社区gt;

How Can I change so that also the time gets displayed? thanks alot


Try this:

Binding="{Binding Path=MyDate, StringFormat={0:d MMM yyyy hh:mm}, Mode=OneWay}"

0

精彩评论

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