Forum Moderators: open

Message Too Old, No Replies

Date and Time in javascript

Very basic question, sorry if it's been asked before

         

Webitseo

5:55 pm on Jun 7, 2009 (gmt 0)

10+ Year Member



I have scoured the net and found nearly what I'm looking for, but not exactly, and I don't really know javascript, so trying to piece together bits of code hasn't worked. What I need is the script for a live clock with date and time format exactly as follows:

Sunday, 07 June 2009, 24:00:00 (GMT+1)

I would really appreciate help with this. I'm pulling my hair out.

Many thanks in advance.

fargo1999

6:14 pm on Jun 7, 2009 (gmt 0)



You can try this below (but it won't have any commas). It's possible to do with commas but the script would be much longer:

<SCRIPT>
<!--
document.write(Date()+".")
//-->
</SCRIPT>

Webitseo

7:00 pm on Jun 7, 2009 (gmt 0)

10+ Year Member



That didn't work, but thank you for your help.

Webitseo

7:02 pm on Jun 7, 2009 (gmt 0)

10+ Year Member



Actually, yes it did work for adding GMT+1. Thank you very much!