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

Date formatting with SQL

Status
Not open for further replies.
Nov 15, 2002
13
CA
I am trying to pass a date value with a string onto the next page with ASP. However I cannot get the date format to work properly. I recall that one needs to include # signs in it. Can someone please take a look at my code below and help me out.



If Len(trim(frmSearch.StartDate.Value)) > 0 Then
WhereSTR = WhereSTR & "((Wire.Value)=" & frmSearch.StartDate.Value & "))" & WhereConc
End If
 
Try the following:

If Len(trim(frmSearch.StartDate.Value)) > 0 Then
WhereSTR = WhereSTR & "((Wire.Value)=#" & frmSearch.StartDate.Value & "#))" & WhereConc
End If

I think this should work :) Nick (Software Developer)


nick@retrographics.fsnet.co.uk
nick.price@myenable.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top