Hi,
How do I convert string with HTTP date format such as
Wed, 29 Apr 2020 10:35:50 GMT
back to its TDateTime value?
I try with ScanDateTime()
adateTime := ScanDateTime(     'ddd", "dd" "mmm" "yyyy" "hh:mm:ss" GMT"',     
'Wed, 29 Apr 2020 10:35:50 GMT');
but EConvertError exception is raised with message 
Mismatch char " " <> "," at pattern position 5, string position 5

ZamroniFano Framework https://fanoframework.github.io

Zamrony P. Juhara
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to