0.00 is 20 Dec 1899, midnight
-1.00 is 29 December 1899, midnight
5.50 is 4 January 1900, noon.
For comparing two dates:
if ((date2 - date1) < FLT_EPSILON)
{
printf("same date");
}
FLT_EPSILON is defined in the LIMITS.H include file for .NET.
Defined in FLOAT.H for unmanaged code.
No comments:
Post a Comment