[fpc-pascal] strtodate on linux
fpc-devel at aborka.com
Fri May 21 05:50:39 CEST 2010
I had a problem like this before.
If memory serves right, I had to set all four of these for StrToDate to
work under Linux after moving some code from Windows:
LongTimeFormat := 'hh:mm:ss';
ShortDateFormat := 'YYYY/MM/DD';
DateSeparator := '/';
TimeSeparator := ':';
On 5/20/2010 19:19, Vannus wrote:
> I've used strtodate to convert 01/02/2010 on windows ok, but it fails
> with 'Invalid date format' on linux.
> anyone got any ideas why this happens?
> - V
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal