sql get all dates between two dates code example
Example 1: sql check if date is between 2 dates
SELECT startDate, endDate
FROM YourTable
WHERE '2012-10-25' between startDate and endDate
Example 2: mysql query dates between two dates
select * from users
where signup_date between '2020-05-01' and '2020-12-10 23:59:59';
// Important with the times,
// otherwize you will not get all records from end date.
// Event if you only have date and no times in signup_date column