Now less 60 minutes (1 Viewer)

LaBam

Registered User.
Local time
Today, 19:15
Joined
Mar 21, 2002
Messages
48
Please help. Does anyone out there know how to subtract 1 hour (60 minutes) from the current system date and time and give the result in the same format using VBA?

What I have in mind is using the Now function in VBA to retrieve the current system date and time, subtract 60 minutes from it, and then display the result in the same format.

That is, if Now = 09/01/2003 09:30, then less 60 minutes, the result should be 09/01/2003 08:30

Please help.
 

Mile-O

Back once again...
Local time
Today, 19:15
Joined
Dec 10, 2002
Messages
11,316
Subtract 1/24 from Now()


=Now()-(1/24)
 

LaBam

Registered User.
Local time
Today, 19:15
Joined
Mar 21, 2002
Messages
48
Worked perfect. Thanks.
 

Users who are viewing this thread

Top Bottom