Post by Donald LessauDebug.Print CDbl(CDate(Fix(Now * 10000000) / 10000000)), CDbl(Now)
I wouldn't call reducing the number of decimal places a truncation when
dealing with Dates. With Dates, a second is not .0000001 but rather
.000011574074074074074074074(1)
Consider someone asking to trucate quarters from a Currency value. Can
you just go: Value = Int(Value * 10) / 10 ???
Such a solution ends up with values like 1.3, 5.9, 4.8 etc. Its a truncation
by definition, but not to the value requested.
So the question is, like rounding down to the nearest quarter, does the OP
really mean to round down to the nearest second? If that is the case then
I would suggest the value 86400 should be used in place of your 10000000.
LFS