Array of future event dates?
Hi,
I'd like to get an array of all future dates on which a low event is occurring (for use with a datepicker in JavaScript) – is there a good way to go about this?
Thanks,
David
Hi,
I'd like to get an array of all future dates on which a low event is occurring (for use with a datepicker in JavaScript) – is there a good way to go about this?
Thanks,
David
Replies
Low 2 Mar 2013 12:11
You could use the Query module to get the start dates, but that won't account for multi-day events.
davidpmccormick 2 Mar 2013 20:02
Thanks for the suggestion. I decided to make a PHP function that returns a date range of all dates of all events (all the events I want to add are multi-day). Then I json_encode that and pass it to the JS – seems to be working OK.