Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Sorting on Date which is a string
posted

Hi,

Can you please help me with this. We have a property LastUpdate that has a format of yyyyMMdd. In view I am using converter that formats it as DD MMM yyyy. When I try to sort it sorts incorrectly as it sorts as a string hence 1/10/2010 is less than 2/9/2009. I tried to use EditorStyle the sorts works but there is an export to excel feature. when we export to excel the date format shows as yyyyMMdd as opposed to DD MMM yyyy. I am not able to use both converters at the same time as it shows no value. Can you  please help to show this problem. It should show as DD MMM yyyy on UI and also sort as Date.

Thanks, Naveen