user9969
user9969

Reputation: 16060

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}" />

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

Upvotes: 0

Views: 783

Answers (1)

Guge
Guge

Reputation: 4599

Try this:

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

Upvotes: 1

Related Questions