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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime format for URL

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Group,
I'm trying to passs the CurrentDate to the textbox named SnapshotDate. However, when I specify a value of DateTime.Today I get an error saying that it is of the wrong type. If I type in 01/03/2006, this works and renders the form correctly

How can I default the SnapshotDate with the Current Date?
I need to append it to the forms action attribute.

cheers
 
Try doing a ToString after the Today...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Forgot to add...
Here's my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Corvu LAA</title>
</HEAD>
<body>
<form id="frmRender" action=" method="post"
target="_self">
<input type="hidden" name="rs:Command" value="Render"> <input type="hidden" name="rc:Toolbar" value="false">
<input type="text" name="SnapshotDate">
<input type="submit" name="SnapshotDate" value="View Report">
</form>
</body>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top