User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 422,557 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,645 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting

add one hour to current time

Join Date: Oct 2003
Posts: 82
Reputation: g0rb4ch3v is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
g0rb4ch3v g0rb4ch3v is offline Offline
Junior Poster in Training

Re: add one hour to current time

  #2  
Sep 19th, 2005
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>
Reply With Quote  
All times are GMT -4. The time now is 1:07 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC