void SetStatus( DateTimeStatus nStatus );
Parameters
nStatus
The new status value for this COleDateTime object.
Remarks
Call this member function to set the status of this COleDateTime object. The nStatus parameter value is defined by the DateTimeStatus enumerated type, which is defined within the COleDateTime class.
enum DateTimeStatus{
valid = 0,
invalid = 1,
null = 2,
};
For a brief description of these status values, see the following list:
Caution This function is for advanced programming situations. This function does not alter the data in this object. It will most often be used to set the status to null or invalid. Note that the assignment operator (operator =) and SetDateTime do set the status of the object based on the source value(s).
Example
See the example for GetStatus.
COleDateTime Overview | Class Members | Hierarchy Chart
See Also COleDateTime::GetStatus, COleDateTime::operator =, COleDateTime::SetDateTime, COleDateTime::m_dt