WPF Format Date in ListView

 
I am very new to WPF. So here goes:

<GridViewColumn Header=“Date Input” Width=“150”>
<GridViewColumn.CellTemplate >
<DataTemplate >
<TextBox Text=“{Binding Path=DateInput, StringFormat=’dd-MMM-yy’}” />
</DataTemplate>
</GridViewColumn.CellTemplate></GridViewColumn>

 
Good article here…
 
 
 
 
 

Leave a comment