Schuster Efigenio

Schuster Efigenio

  • NA
  • 20
  • 17.1k

Formatting an XML Date in WPF

Aug 10 2011 12:01 PM

Hello there,

I have an XMLDataProvider and I am having an issue displaying dates.

This is my DataProvider in the .xaml file:


<

This is my gridview column:

<

<GridViewColumn.CellTemplate><DataTemplate>


<Label Width="200" Content="{Binding XPath=//person/data/date}"></Label>


</DataTemplate>


</GridViewColumn.CellTemplate>


</GridViewColumn>

I cannot seems to display the date in a more readable format using StringFormat or ContentStringFormat.

The date is always displayed as : 2011-08-08T00:00:00+01:00


Any suggestions or advice would be welcomed.


GridViewColumn Header="Shift Start" Width="200">
XmlDataProvider x:Key="src_techavail" x:Name="src_techavail" XPath=""></XmlDataProvider>

Answers (1)