[fpc-pascal] Why has StrToDate() failing under FPC 2.3.1 (64bit)
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Oct 20 11:20:20 CEST 2009
Compiling the project works fine under FPC 2.3.1 (linux 64bit), but
running it, i get a EConvertError and I don't know why.
I am telling sysutils what LongDateFormat is like, but it still fails.
Any ideas?
-----------------------
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
,SysUtils;
var
s: string;
d: TDateTime;
begin
LongDateFormat := 'dd/mm/yyyy';
s := '03/06/2004 12:45:15:000';
d := StrToDate(s);
end.
-----------------------
--
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list