dsteers
asked on
Getting Computers Date & Time
Hi,
I was wondering if anyone could help me.
I want to know how to get the current computer time and date,
in both 24 hr format or showing "AM/PM"
Thanks
Dave Steers
I was wondering if anyone could help me.
I want to know how to get the current computer time and date,
in both 24 hr format or showing "AM/PM"
Thanks
Dave Steers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Date, Time and Now are probably what you want, but also take a look at the following functions: Year, Month, Day, Hour, Minute and Second.
ASKER
Thank you everyone,soosairaj,emoreau &
KDavid.
KDavid.
ASKER
Also does anyone know a bit of code that would allow the subtraction of time over midnight.
E.g From 1300 (PM) Thursday 9 March to
0200 (AM) Friday 10 March.
The Code will tell the difference between the two in days,hours & minutes.
Thanks
Dave Steers
E.g From 1300 (PM) Thursday 9 March to
0200 (AM) Friday 10 March.
The Code will tell the difference between the two in days,hours & minutes.
Thanks
Dave Steers
ASKER
DAMM !!
I meant to Give the points to emoreau,
(sorry soosairaj).
My mistake.
emoreau I will post you the points in another question labled
"Points for emoreau"
sorry for this inconvienience.
Thanks
I meant to Give the points to emoreau,
(sorry soosairaj).
My mistake.
emoreau I will post you the points in another question labled
"Points for emoreau"
sorry for this inconvienience.
Thanks
>>Also does anyone know a bit of code that would allow the subtraction of time over midnight.<<
Take a look at the DateDiff function.
Take a look at the DateDiff function.
? format(time,"hh:nn:ss AMPM")
09:50:33 PM
? format(time,"hh:nn:ss")
21:50:47