RFX_Date
Visual Studio 2010
Transfers CTime or TIMESTAMP_STRUCT data between the field data members of a CRecordset object and the columns of a record on the data source of ODBC type SQL_DATE, SQL_TIME, or SQL_TIMESTAMP.
void RFX_Date( CFieldExchange* pFX, const char* szName, CTime& value ); void RFX_Date( CFieldExchange* pFX, const char* szName, TIMESTAMP_STRUCT& value ); void RFX_Date( CFieldExchange* pFX, const char* szName, COleDateTime& value );
The CTime version of the function imposes the overhead of some intermediate processing and has a somewhat limited range. If you find either of these factors too limiting, use the second version of the function. But note its lack of code wizard and DDX support and the requirement that you set up the structure yourself.