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

Listing tours within month range.

Status
Not open for further replies.

lahddah

Programmer
Jan 2, 2003
109
US
Hi. I've got a database of tours, with a field called 'Season'. The field is populated with a range of months that the tour is available. They are listed as such:

tourname = Tour1 Season = March - August
tourname = Tour2 Season = December - April

I've also got a month search drop down box and would like to make it so that if I chose April, I will get a listing of all tours offered in April. What is the best way to determine if a month lies within a range so searching for April will bring up both examples above?

Thanks, in advance!


~ lahddah
 
store the month value as an integer, then when you retrieve it cast it as a date or convert it script side, then just use numeric comparisons for display

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top