Support

Home Forums Event Espresso Premium API – Where filter on Multiple Datetimes on an Event

API – Where filter on Multiple Datetimes on an Event

Posted: June 28, 2018 at 7:56 am

Viewing 2 reply threads


dassaultfalcon

June 28, 2018 at 7:56 am

Hi !

Basically I am trying to get a list of all the “upcoming events” in next 24 hours. So I am using the API/events, with a where clause of

where[Datetime.DTT_EVT_start][0]” “<=” &”where[Datetime.DTT_EVT_start][1]=*24-hrs-from-now*”

My question is, if we have an event with multiple datetimes, will this filter take care of making sure that it applies it to the earliest date time ?

Thanks,
Amit


Josh

  • Support Staff

June 28, 2018 at 2:15 pm

Hi Amit,

If I understand your question correctly, when the query filters for datetimes it will return any event that has at least one datetime that starts within the next 24 hours. It doesn’t matter if it’s the first occurring or the last occurring datetime.


dassaultfalcon

June 29, 2018 at 8:47 am

Ok. Thanks !

Viewing 2 reply threads

The support post ‘API – Where filter on Multiple Datetimes on an Event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso