Topic Path: Symbol Reference > Classes > TIdMessage Class > TIdMessage Properties > UseNowForDate Property
ContentsIndexHome
PreviousUpNext
TIdMessage.UseNowForDate Property

Indicates that the message uses the current date and time when sent.

property UseNowForDate: Boolean;

UseNowForDate is a Boolean property that indicates the message should use the current date and time in the Date property when the message is sent to the server. 

Assigning a non-empty TDateTime value to the Date property in the message cause UseNowFOrDate to return False. 

The default value for UseNowForDate is ID_MSG_USENOWFORDATE

UseNowForDate is used in GenerateHeader to determine if the current date and time are assigned for the message Date when UseNowForDate contains true. 

When UseNowForDate contains False, the value in the Date property is used in the headers for the message. This usage is most common when loading previously transmitted messages for relay.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.