This is my first question, so please don't be too harsh. I've been trying for the last couple days to solve this with no luck.
I have a content type called "Event" which contains a custom date field for the 'start date/time' of the event. What I need is to be able to list events for the next THREE days after the current timestamp.
Keep in mind that it doesn't count empty days, so if there are no events for tomorrow, for example, it won't count that as an empty day. Instead it would list the events out for the next day, and the following (assuming there are events for those days).
If I were able to access the custom date field through straight SQL, I would first get the 3 dates I need, and the query would look something like this:
SELECT DISTINCT(DATE(`date_field`))
FROM {node}
WHERE `type` = 'event'
AND `field_start_test_date` > NOW()
ORDER BY DATE(`date_field`) ASC
LIMIT 3;
I've been unable to accomplish this with Views or EntityFieldQuery. I'm also willing to create my own joins using SQL, but from what I've read, that's discouraged. I'm open to any suggestions. Please let me know if I need to be more specific.
Thanks!
date_field
)) should take of this). From there I was going to run a second query which pulled back records with those date_field matched those dates. Thanks again! I appreciate all the help I can get.