Hi all,
I'm running two labels:-
One has the current local time updated by a timer
The second label needs to display <local-time> minus an offset ie: 10 hours.
How do I subtract 10 hours from the local time and display it?
Mark
Printable View
Hi all,
I'm running two labels:-
One has the current local time updated by a timer
The second label needs to display <local-time> minus an offset ie: 10 hours.
How do I subtract 10 hours from the local time and display it?
Mark
Code:Dim FirstDate As Date
Dim SecondDate As Date
FirstDate = Now
SecondDate = DateAdd("h", -10, FirstDate)
Thanks! That worked a treat!