All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Array of future event dates?

davidpmccormick 1 Mar 2013 17:10 question, complete

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

  1. 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.

  2. 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.