|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a question on an sql statement with dates. I have a database
with a startdate and an enddate field. Now i'm able to compare it like startdate > variable and enddate< variable. Now my question is what if I don't select certain dates to be compared for instance like todays date which I know is not in the database. So something like if dates are selected then search through the database to find results else if dates are not select still find results with the other conditions. I appreciate any help |
|
#2
|
||||
|
||||
|
Code:
If Request.Form("StartDate") <> "" Then
Search for a startDate
End If
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > get date ranges |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|