[fpc-pascal] Why has StrToDate() failing under FPC 2.3.1 (64bit)

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Oct 20 11:58:21 CEST 2009


On 20/10/2009, Michael Van Canneyt <michael at freepascal.org> wrote:
>
>  You make a common assumption, which is mistaken:
>  StrToDate(DateToStr(date)) generally does not work.

Crap!  And that is pretty much what the tiOPF unit test is testing for.

So why is StrToDate() so different to Delphi? In Delphi, the above
mentioned code works.

And to make matters worse, the tiOPF code is compiled with "$mode
delphi" enabled.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-pascal mailing list