How can I add one hour to current time using javascript? :twisted:

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.

<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>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.