const CDateTime& operator=(const CDateTime& date);
const CDateTime& operator=(const time_t& newTime);
const CDateTime& operator=(const SYSTEMTIME& systime);
const CDateTime& operator=(const FILETIME& filetime);
  Property Description  
    Argument date Makes an exact copy from the CDateTime Provided
CDateTime a(1974,7,26);
CDateTime b;

b = a;
// a is now a holds the date 26/7/1974
					
 
    Argument newTime Populates this CDateTime from a time_t (newTime)
time_t t;
CDateTime a;

// get the current time
time( &t );

// copy the time into a
a = t;
					
 
    Argument systime Populates this CDateTime from a SYSTEMTIME
SYSTEMTIME st;
CDateTime a;

// get the current time
GetSystemTime( &st );

// copy the SYSTEMTIME into a
a = st;
					
 
    Argument filetime Populates this CDateTime from a FILETIME
FILETIME ft;
CDateTime a;

// get the current time
SetFileTime( hFile, &ft, NULL, NULL );

// copy the FILETIME into a
a = ft;
					
 
    Description Populates this CDateTime from another object  
    Remarks Throws: LtInvalidValueException thrown on parsing invalid values