Gabor Boros wrote: > > Hi, > > I want to convert a string to a TDateTime variable. > In example the string is: 'November 21 09:42:21 2008'. > I tried ScanDateTime with 'mmmm dd hh:nn:ss yyyy' pattern but not > working. How can I convert this type of string to DateTime? > ScanDateTime does the opposite of what FormatDateTime does, so you should look at the output of FormatDateTime with that pattern. Note that if it outputs String (such as that 'November'), it will depend on your localization. -- View this message in context: http://www.nabble.com/Convert-complicated-string-to-DateTime-tp22317964p22323185.html Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal