sun_after_rain
Registered User.
- Local time
- Today, 00:07
- Joined
- Jun 25, 2011
- Messages
- 11
I am trying to extract records that fall within a certain date range.The date field is in the format mm/dd/yyyy.
Here's the tricky part:
The records also have data ranges. For example: Movie A has a start_date of 4/1/2005 and end_date of 3/31/2013.
The user can search on start date and/or end date.
If the search date is 4/1/2005, Movie A will result. If the search date is 4/1/2005 and end date 4/01/2013, Movie A will result. If Movie A end_date is 4/01/2013, Movie A will result. And if start date is 3/31/2013 and end_date is 4/01/2014, Movie A will result.
How do I write a code for this?
Puzzled.
Here's the tricky part:
The records also have data ranges. For example: Movie A has a start_date of 4/1/2005 and end_date of 3/31/2013.
The user can search on start date and/or end date.
If the search date is 4/1/2005, Movie A will result. If the search date is 4/1/2005 and end date 4/01/2013, Movie A will result. If Movie A end_date is 4/01/2013, Movie A will result. And if start date is 3/31/2013 and end_date is 4/01/2014, Movie A will result.
How do I write a code for this?
Puzzled.