IHeaderFooter::dateLong Property

Sets or retrieves the current date in long format.

Syntax


HRESULT IHeaderFooter::get_dateLong(BSTR *p);HRESULT IHeaderFooter::put_dateLong(BSTR v);

Parameters

p
Pointer to a variable of type BSTR that receives the current date in long format.
v
BSTR that specifies the current date in long format.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The memory returned in p can be freed with SysFreeString.

The HeaderFooter behavior will calculate an initial value for the IHeaderFooter::dateLong property automatically when the HeaderFooter behavior is first instantiated. This value can be changed.

Typically, the long date uses the format dddd, MMMM dd, yyyy, such as Thursday, October 21, 1999. The actual formatting of the date on your system is determined by the Regional Settings under the Date tab in the Control Panel.

See Also

IHeaderFooter::dateShort
Show: