<<< back to <BUTTON TYPE="...">

Script to Return Today's Date

Here's the script used to return today's date:

<SCRIPT TYPE="text/javascript">
<!-- 
// SCRIPT FOR THE "TODAY" BUTTON
function today()
{
var now,rv;
now = new Date();
var rv = 
 now.getMonth() + "/" + 
 now.getDate() + "/" + 
 now.getYear();
return rv;
}
// -->
</SCRIPT>

This allows us to create a button which puts today's date in a form:

application date:

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com