Re: date format ?

Giganews Newsgroups
Subject: Re: date format ?
Posted by:  Remy Lebeau (TeamB) (
Date: Tue, 30 Dec 2003

"Feijó" <fei…> wrote in message

> header.Values['date'] := FormatDateTime(cMask, Now);

Indy has a DateTimeToInternetStr() function, you should use that instead:

    header.Values['date'] := DateTimeToInternetStr(Now);

Alternatively, if you are actually filling in a TIdMessage, then just set
its UseNowForDate property to true and let it handle filling in the 'date'
header for you when the message is encoded.



In response to

date format ? posted by Feijó on Tue, 30 Dec 2003