Link to home
Start Free TrialLog in
Avatar of Sindibad_123
Sindibad_123

asked on

Get UTC date and time

Hi, I need to get the current UTC date and time using javascript on the following format: Sun 30 Oct 2011 14:04:03,
Hw can I do that?
I'm able to get the time using the following code but not the date:
    document.write(d.getUTCHours())
    document.write(":")
    document.write(d.getUTCMinutes())
    document.write(":")
    document.write(d.getUTCSeconds())

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

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 Sindibad_123
Sindibad_123

ASKER

Thank u that what Im lookking for, but I need to display "GMT" instead of "UTC"