Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format

Status
Not open for further replies.

zeert2002

Programmer
Sep 26, 2007
13
0
0
US
Hi how would I get this time format in javascript?

This format was from Java:

"2008-05-09T16:39:00.603-07:00"

Any help is greatly appreciated.
 
Try this excellent reference for the javascript date object:


I'm sure you can make that date using the options shown on that link.

CHeers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Thanks for answering Jeff. But do you know what this mean?

"16:39:00.603-07:00"

I think 16:39:00 is the time but i don't understand anything after that. Does anybody know? Thanks.
 
I am guessing the 603 represents 603 milliseconds and the -7.00 represents your time zone offset from UTC (-7 hours).

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top