date/time conversion from 12h AM/PM to 24 hours
Posted on 2004-04-21
i have this function that will display the date right, regardless of what the locale settings are.
the thing is.. i can't get it right with the time section. it says 9:24 PM where is should say 21:24.
can anyone modify this function so this will be right?
function MyDateTimeToStr(Date: TDateTime): string; stdcall;
df.ShortDateFormat := 'dd.mm.yyyy';
Result := DateTimeToStr(Date,df);