[fpc-pascal] Convert complicated string to DateTime
leledumbo
leledumbo_cool at yahoo.co.id
Wed Mar 4 04:54:32 CET 2009
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.
More information about the fpc-pascal
mailing list