"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
https://dcclost.com

________________________________
From: Zamrony P. Juhara <[email protected]>
Sent: Tuesday, April 28, 2020 10:44:07 PM
To: FPC-Pascal users discussions <[email protected]>; Alexander 
Grotewohl <[email protected]>; FPC-Pascal Users Discussions 
<[email protected]>
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
<[email protected]> wrote:
_______________________________________________
fpc-pascal maillist  -  
[email protected]<mailto:[email protected]>
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to