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 361,053 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 2,184 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
Views: 3474 | Replies: 1
Reply
Join Date: Aug 2005
Posts: 26
Reputation: aish is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
aish's Avatar
aish aish is offline Offline
Light Poster

add one hour to current time

  #1  
Sep 19th, 2005
How can I add one hour to current time using javascript?
AddThis Social Bookmark Button
Reply With Quote  
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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 11:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC