<!-- GMT AND TIMEOFFSET --> <!-- This goes in the HEAD of the HTML file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2002, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- function getGMT() { today = new Date(); gmt = today.toGMTString(); offTime = today.getTimezoneOffset(); exp1 = today.getUTCHours(); exp1 = ((exp1<10) ? "0"+exp1 : exp1); exp2 = today.getUTCMinutes(); exp2 = ((exp2<10) ? "0"+exp2 : exp2); exp4 = today.getUTCSeconds(); exp4 = ((exp4<10) ? "0"+exp4 : exp4); exp = exp1 + ":" + exp2 + ":" + exp4; document.form1.gmt.value = exp; document.form1.offTime.value = offTime / 60; setTimeout("getGMT()", 1000); } //--> </script> <!-- This goes in the BODY of the HTML file --> <body> <form name="form1"> <table border="0" cellpadding="3" cellspacing="0" bgcolor="#c0c0c0"> <tr> <td> <font face="verdana, arial, helvetica, sans-serif" size="1"><b> GMT: </font></b> </td> <td> <input type="text" size="10" name="gmt" /> </td> </tr> <tr> <td> <font face="verdana, arial, helvetica, sans-serif" size="1"><b> Timezone offset <br />from UTC/GMT: </font></b> </td> <td> <input type="text" size="5" name="offTime" /> </td> </tr> <tr> <td align="center" colspan="2"> <input type="button" value="Submit" onClick="getGMT();" /> </td> </tr> </table> </form>