Link to home
Start Free TrialLog in
Avatar of Taimur Hassan
Taimur HassanFlag for Pakistan

asked on

calculate seconds since midnight

how to calculate calculate seconds since midnight?
Avatar of roverm
roverm
Flag of Netherlands image

Use the Timer object. It returns a Single containing the seconds passed since midnight !!!

'Msgbox Timer'

Good luck !

RoverM
ASKER CERTIFIED SOLUTION
Avatar of paulstamp
paulstamp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paulstamp
paulstamp

The above DateDiff is useful as it can be used to find seconds elapsed since any time or date, in intervals from years down to seconds.
Avatar of Taimur Hassan

ASKER

Just what I needed.

Thank you paulstamp