Re: date format ?

Giganews Newsgroups
Subject: Re: date format ?
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Tue, 30 Dec 2003

"Feijó" <fei…@x.suply.com> wrote in message
news:B98EC0092D8CE240fei…@x.suply.com...

> 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.

Gambit

Replies

In response to

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