开发者

Format Time in Xaml

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜