Click to See Complete Forum and Search --> : Date - Help!!!!!!!!


uni
October 2nd, 2001, 06:39 PM
Hi,

Does anyone have some code that converts a date\time datatype into a double datatype.

eg. convert 9:45pm into 21.75

Please help as is urgent.

Thanks.

d.paulson
October 2nd, 2001, 08:55 PM
Text1 = CDbl(Time) * 24


David Paulson

uni
October 2nd, 2001, 09:15 PM
That works great. However, there is one more problem. The time is coming from a date/time field and therefore I need to first split the time away from the date.

DO YOU KNOW HOW TO DO THIS?

THANKS HEAPS.

d.paulson
October 2nd, 2001, 09:26 PM
debug.Print formatdatetime(now,vbShortTime)

David Paulson