| BOOL SetDate( |
| |
LPCTSTR lpszDate, |
|
| |
BOOL bLocalize |
|
| ); |
The SetDate method sets the date and time in the header for
the specified message.
Parameters
- lpszDate
- Pointer to a string which specifies the date
and time. If this parameter specifies a zero-length string or a
NULL pointer, the current date and time will be used.
- bLocalize
- Boolean flag that specifies the date and time should be
localized for the current timezone.
Return Value
If the method succeeds, the return value is non-zero. If the
method fails, the return value is zero. To get extended error
information, call GetLastError.
Remarks
The date string should be in a standard format as outlined in RFC
822, the document which describes the basic structure of Internet
email messages. For a description of the date string format, refer
to the FormatDate method.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmsgv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|