Auto-Enter Current Date
General
This script will enter the current date in a read only form field. Good for when you want to collect the current date but want to make sure it's formatted properly.
Notes
- Created by: Jean P. May, Jr.
- Web Site: http://www.wideopenwest.com/~thebearmay
- Posted: January 4, 2008
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: autoEnterCurrentDate.js
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document


Leave a Response
(2 comments)I like this script. I have used a variety of tools to create a field that will do this, but this one is a lot simpler and easier to implement.
Date function coding is very long.. in you source code. is there any other code to get date in small & simple code??