[fpc-pascal] Converting http date back to TDateTime

Alexander Grotewohl alex at dcclost.com
Wed Apr 29 04:59:39 CEST 2020

"Note that to include any of the above characters literally in the result string, they must be enclosed in double quotes."

This only makes sense for FormatDateTime which returns a string you can display.

For example:
writeln(FormatDateTime(' "yyyy" = yyyy ', now));

To print:
yyyy = 2020

Alexander Grotewohl

From: Zamrony P. Juhara <zamronypj at yahoo.com>
Sent: Tuesday, April 28, 2020 10:44:07 PM
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>; Alexander Grotewohl <alex at dcclost.com>; FPC-Pascal Users Discussions <fpc-pascal at lists.freepascal.org>
Subject: Re: [fpc-pascal] Converting http date back to TDateTime

No it does not work. Docs says literal string needs to be quoted with "

Zamrony P. Juhara

On Wed, Apr 29, 2020 at 9:37, Alexander Grotewohl
<alex at dcclost.com> wrote:
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org<mailto:fpc-pascal at lists.freepascal.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200429/28bdbb07/attachment-0001.html>

More information about the fpc-pascal mailing list