Jump to content

Uriah

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. To have a field default to today's date, I add JavaScript code to the footer element of the data page. (make sure when you are adding code to the footer element that you add it in the source and not the text editor.) <script> /* Today's Date */ Today = new Date(); var dtTodayDate; if ( Today.getMonth() == 0 ) { dtTodayDate =( '' + (Today.getMonth())+1 + "/" + Today.getDate() + "/" + Today.getFullYear() ); } else if ( Today.getMonth() == 1 ) { dtTodayDate =( '' + "2/" + Today.getDate() + "/" + Today.getFullYear() ); } else { dtTodayDate =( '' + (Today.getMonth()+1) + "/" + Today.getDate() + "/" + Today.getFullYear() ); } document.getElementById("InsertRecordDate").value=dtTodayDate; </script>
×
×
  • Create New...