•
•
•
•
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
![]() |
•
•
Join Date: Oct 2003
Posts: 82
Reputation:
Rep Power: 5
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>
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- 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?


Linear Mode