Tuesday, September 7, 2010

DATE Delta

#include <FLOAT.H> // for the FLT_EPSILON unmanaged code

DATE date1;
DATE date2;

DATE dEpsilon = date1 - date2;

if (dEpsilon > FLT_EPSILON)
{
   COleDateTime clTempEpsilon (depsilon);
   CString strEpsilon = clTempEpsilon.Format("%H:%M:%S %m/%d%Y");
   TRACE (strEpsilon);
}

No comments: