May 23, 2008 #1 zeert2002 Programmer Sep 26, 2007 13 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.
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.
May 23, 2008 #2 BabyJeffy Programmer Sep 10, 2003 4,189 GB Try this excellent reference for the javascript date object: http://www.w3schools.com/jsref/jsref_obj_date.asp I'm sure you can make that date using the options shown on that link. CHeers, Jeff [tt]Jeff's Blog [!]@[/!] CodeRambler http://www.coderambler.com/http://www.coedit.co.uk/[/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 Upvote 0 Downvote
Try this excellent reference for the javascript date object: http://www.w3schools.com/jsref/jsref_obj_date.asp I'm sure you can make that date using the options shown on that link. CHeers, Jeff [tt]Jeff's Blog [!]@[/!] CodeRambler http://www.coderambler.com/http://www.coedit.co.uk/[/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
May 23, 2008 Thread starter #3 zeert2002 Programmer Sep 26, 2007 13 US 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. Upvote 0 Downvote
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.
May 23, 2008 #4 BabyJeffy Programmer Sep 10, 2003 4,189 GB 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 http://www.coderambler.com/http://www.coedit.co.uk/[/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 Upvote 0 Downvote
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 http://www.coderambler.com/http://www.coedit.co.uk/[/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