I am using the following mySQL query to select entries where date_start is within the next 14 days, for the most part it works fine but it is not including entries that are “today”
SELECT * , DATE_FORMAT( date_start, ' %d.%m.%Y' ) AS date_formatted
FROM calendar_event
WHERE Date_start
BETWEEN NOW( )
AND DATE_ADD( NOW( ) , INTERVAL 14
DAY )
AND amountpaid + amountpaid2 + amountpaid3 < amount
AND amountpaid > 0
any ideas how i can make it also show entries that are scheduled with todays date
many thanks
At any time in the day except 12:00am, the value returned by
NOW()will be greater than 12:00am of the morning of that day.