[fpc-pascal] DefaultFormatSettings usage

silvioprog silvioprog at gmail.com
Wed Feb 5 03:00:37 CET 2014


2014-02-04 waldo kitty <wkitty42 at windstream.net>:

> On 2/4/2014 8:54 AM, silvioprog wrote:
>
>>    t := StrToDate('2013-02-04 11:39:54'); // to format yyyy-mm-dd hh:nn:ss
>>
>
> the above is StrToDate but you are also sending the time... you would see
> similar if you were sending the above string to StrToTime...
>
> StrToDate only accepts date formats as StrToTime only accepts time
> formats...
>
> if you want to send both, you have to use StrToDateTime ;)
>
> --
> NOTE: No off-list assistance is given without prior approval.
>       Please keep mailing list traffic on the list unless
>       private contact is specifically requested and granted.


Yes yes, after I saw that in typing fast, I forgot to use StrToDateTime.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140205/f9e4a9e7/attachment.html>


More information about the fpc-pascal mailing list