Public Function DoubleToDateTime( _ ByVal vDateTime As Variant _ ) As Variant
CDate(-1.00) = #12/29/1899 00:00# CDate(-0.75) = #12/30/1899 18:00# ' Note CDate(-0.25) = #12/30/1899 06:00# ' Note CDate( 0.00) = #12/30/1899 00:00# CDate( 0.25) = #12/30/1899 06:00# CDate( 0.75) = #12/30/1899 18:00# CDate( 1.00) = #12/31/1899 00:00# DoubleToDateTime(-1.00) = #12/29/1899 00:00# DoubleToDateTime(-0.75) = #12/29/1899 06:00# DoubleToDateTime(-0.25) = #12/29/1899 18:00# DoubleToDateTime( 0.00) = #12/30/1899 00:00# DoubleToDateTime( 0.25) = #12/30/1899 06:00# DoubleToDateTime( 0.75) = #12/30/1899 18:00# DoubleToDateTime( 1.00) = #12/31/1899 00:00#See also:
DateTimeToDouble FunctionvDate: The floating-point number of days since 12/30/1899 that will be converted back to Microsoft's representation for Date/time values. Function returns Null if vDate is Null or cannot be fixed up to a Date.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.