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}"
精彩评论