SQL проверьте, имеет ли дату между 2 датами
SELECT startDate, endDate
FROM YourTable
WHERE '2012-10-25' between startDate and endDate
Wild Wolf
SELECT startDate, endDate
FROM YourTable
WHERE '2012-10-25' between startDate and endDate