DateCreated and LastUpdated Properties Example (VC++)

This example determines the date and time when the Employees table was created and last updated.

CdbDBEngine      dbeng;
CdbDatabase      dbsNorthwind;
CdbRecordset      rstEmployees;
CDateTime      dtCreation, dtDesignChange;

dbsNorthwind = dbeng.Workspaces[0L].OpenDatabase(_T("Northwind.mdb"));
rstEmployees = dbsNorthwind.OpenRecordset(_T("Employees"));//open RS

dtCreation = rstEmployees.GetDateCreated();
dtDesignChange = rstEmployees.GetLastUpdated();

rstEmployees.Close();
dbsNorthwind.Close();