Reputation: 16060
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}" />
How Can I change so that also the time gets displayed? thanks alot
Upvotes: 0
Views: 783
Reputation: 4599
Try this:
Binding="{Binding Path=MyDate, StringFormat={0:d MMM yyyy hh:mm}, Mode=OneWay}"
Upvotes: 1