I have to convert a date to a string and sometime back to a date for sorting purpose. The following works fine:
SysUtils.ShortDateFormat := 'DD/MM/YYYY HH:MM AM/PM';
I would prefer the following format
SysUtils.ShortDateFormat := 'DD MMM YYYY HH:MM AM/PM';
The problem is that it won't let me convert back to datetime with the function StrToDateTime. Any suggestions ?