| | |
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 |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart close codes column css cursor date debugger decimal dependent design disablefirebug dom download dropdown element embed engine enter error events ext file firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe index java javascript javascripthelp2020 jawascriptruntimeerror jquery jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseoutdivproblem onmouseover paypal pdf php player position post problem programming prototype redirect regex safari scale scriptlets scroll search security select software sql text textarea toggle unicode w3c website window windowofwords windowsxp





