
VBA Now, Date & Time in Excel — Read the Clock, and Why Date Is Also a Statement
A VBA date is a Double — the whole-number part counts days since 1899-12-30 and the fraction is the time of day, so Now, Date and Time are three reads of the same clock. Now returns date plus time, Date returns today at midnight, Time returns the time only. The bug that breaks most code is comparing a stored Now value with Date and never matching, because Now carries a fractional time that the whole-number Date does not. Worse, Date and Time are also statements that reset the computer system clock. This guide shows what the Double really is, why the equality check fails, how to drop the time with Int or DateValue, and why Now is local time rather than UTC.




































































































