My WPF application uses XMLDataProvider for its data. XML file has
<RELEASEDATE>dd/mm/yyyy</RELEASEDATE>
for each of the listed items. I sort the data in the application using
Listbox1.Items.SortDescriptions.Add(new SortDescription("RELEASEDATE", ListSortDirection.Descending));
Results are not expected because the date is treated as a string.
What is the most elegant way? Can I somehow convert the date to a string?
source share