1ex1:
2SELECT * FROM `objects`
3WHERE (date_field BETWEEN '2010-01-30 14:15:55' AND '2010-09-29 10:15:55')
4
5ex2:
6WHERE
7 requireddate BETWEEN
8 CAST('2003-01-01' AS DATE) AND
9 CAST('2003-01-31' AS DATE);
1select * from users
2where signup_date between '2020-05-01' and '2020-12-10 23:59:59';
3// Important with the times,
4// otherwize you will not get all records from end date.
5// Event if you only have date and no times in signup_date column