Auto-Enter Current Date | JavaScriptSource

Auto-Enter Current Date

Jean May Jan 4, 2008


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.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoEnterCurrentDate.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response


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.

Jesse Jan 28, 2008

Date function coding is very long.. in you source code. is there any other code to get date in small & simple code??

Ganesh Jan 16, 2008