| aish | Sep 19th, 2005 4:59 am | |
| add one hour to current time How can I add one hour to current time using javascript? :twisted: |
| g0rb4ch3v | Sep 19th, 2005 11:11 am | |
| Re: add one hour to current time I am not sure but in the following example why not add a +1 next to hour in the formula and see if that works.
Quote: <SCRIPT language="JavaScript">
<!--
var time = new Date()
var hour = time.getHours()
var min = time.getMinutes()
var sec = time.getSeconds()
document.write(hour + ":" + min + ":" + sec)
//-->
</SCRIPT> | |
| All times are GMT -4. The time now is 11:50 pm. | |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC