[fpc-pascal] Date conversion question

Marco van de Voort marcov at stack.nl
Fri Jun 6 10:56:15 CEST 2008


> I have a little project in which I need to convert various string 
> encoded in various date format to TDateTime.
> For the same date, I'll have:

In the upcoming 2.2.2, there will be a scandatetime routine in datetuils.
One could copy this code also to 2.2.0 projects though.

Search for scandatetime in

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/dateutil.inc?view=markup

Have a look at the documentation for formatdatetime and the comments in the
source to get an idea how to use it.



More information about the fpc-pascal mailing list