COleDateTime::COleDateTime

These constructors construct a COleDateTime object.

The default constructor initializes it to zero (midnight, 30 December 1899).

Use the copy constructor to construct a COleDateTime object from an existing COleDateTime object.

Use COleDateTime( varSrc ) to convert a VARIANT structure or COleVariant object to a date/time (VT_DATE) value. If this conversion is successful, the converted value is copied into the new COleDateTime object. If not, it behaves like the default constructor.

Use COleDateTime( nYear, nMonth, nDay, nHour, nMin, nSec ) to construct a COleDateTime object from the specified numerical values.

Use the other constructors to construct a COleDateTime object from a DATE, a time_t, a SYSTEMTIME, a FILETIME, or MS-DOS date and time values, respectively

At a Glance

Header file: Afxdisp.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

COleDateTime( );

COleDateTime( const COleDateTime& dateSrc );

COleDateTime( const VARIANT& varSrc );

COleDateTime( DATE dtSrc );

COleDateTime( time_t timeSrc );

COleDateTime( const SYSTEMTIME& systimeSrc );

COleDateTime( const FILETIME& filetimeSrc );

COleDateTime( int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec );

Remarks

MFC for Windows CE does not support the form of the constructor that initializes a COleDateTime object with a DOS time and date.

See Also

COleDateTime::SetDate, COleDateTime::SetDateTime, COleDateTime::SetTime, COleDateTime::GetStatus, COleDateTime::operator =, COleDateTime::m_dt, COleDateTime::m_status, COleVariant, DATE, FILETIME, SYSTEMTIME, VARIANT