| | |
add one hour to current time
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2003
Posts: 85
Reputation:
Solved Threads: 0
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>
![]() |
Similar Threads
- Creating first GUI Java Program (Java)
- to get current time in mobile.. (Java)
- how do i get the current time when i click a button? (ASP)
- get current time (Java)
- Still working on apptlist program using queue (C++)
- Time Refreshing on a GUI Menu Bar (Java)
- need help w/ typedef (C++)
- I need help with this c++ program please!!! (C++)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Web server time
- Next Thread: Page Opening - Cache Problem?
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





