Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current date & previous date as default

Status
Not open for further replies.

ITadvice

IS-IT--Management
Jul 22, 2008
38
0
0
US

I have a HTML form with two drop down menus for selecting a date. I want to automatically have the current date as the default for one and the other to have the previous day. The form is used to lookup data and I want the default settings to be for the last 24 hours. How can I do this?
 
If your page is static html (as opposed to being generated by ASP or PHP, etc), then you can simply use JavaScript to set these defaults.

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
I don't really know anything about javascript. Do you know of a particular site or resource that would help me with java?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top