Cd LOGO

Clock In a Form

HOME
FORUM
ARTICLES
TUTORIALS
SCRIPTS
TECH LINKS
TECH NEWS
MENTORS
REGISTER

Current Time:
Start Time
Clock in a form: This will put the current date and time in a text field as a running clock. Also a button to set the clock will grab the current time and just display it as a static value; useful when you are timing an event. The clock string can be formatted any way you want it. It is just a matter of extracting the desired pieces from the date object. Because it is in a form field, it also means you can include the exact date of submission right off the form as well.

To get the code use the textbox and buttons below to display; then select and copy the code for pasting into a text file. HINT: Firefox does a better job of formatting the code.

post to Dzone Digg this! Add to del.icio.us Googleize this Add to reddit Save to myYahoo Add to furl Add to Netvouz! Spurl this! Add to Linkroll! Save to Simpy Give if thumbs up on StumbleUpon Save to Blinklist Add to Tektag Save to Bibsonomy Submit to Tweako
Search ERT on the Tools Page
Did you know? You can discuss this article with the mentor who wrote it and others interested in the topic? You are invited to join the discussion with Go to the forum

Got a technical article or tutorial you want to publish on the Internet? Join Go to the forum in the Round Table Forum and let the Mentors know what you have. If it meets ERT standards, is factual and can help ERT visitors, then ERT Mentors and Editors can help you (without charge) polish your offering so it can be published and promoted by ERT. An article published on ERT may be read by as many as 10,000 visitors a week; promoting you, your site, and your ideas. Please note ERT does not publish re-prints; promotional handouts, or pieces consisting mainly of links. So original technical content only please. If you prefer you can email the Editor