> 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. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal