IHeaderFooter::dateShort Property
Sets or retrieves the current date in short format.
Syntax
HRESULT IHeaderFooter::get_dateShort(BSTR *p); HRESULT IHeaderFooter::put_dateShort(BSTR v);
Parameters
- p
Pointer to a variable of type BSTR that receives the current date in short format.- v
BSTR that specifies the current date in short 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::dateShort property automatically when the HeaderFooter behavior is first instantiated. This value can be changed.
Typically, the short date uses the format M/d/yyyy, such as 10/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