What's new in Customer Journeys?

Connect and learn more!
Query by Datetime — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Query by Datetime

Accepted answer
35
Views
2
Comments
edited Jun 8, 2022 12:10PM in General Technical Discussions 2 comments

Content

Hi all,

I'm attempting to query a table by UpdatedTime field, but I'm not getting any results returned. My only guess is that the datetime format is stored differently in the database then I'm assuming. My ROQL query is within a PHP function and I'm passing in a datetime object. It looks something like this:
"select tablename from tablename where UpdatedTime = " . $date

What is the correct way to query by datetime in ROQL? Any insights would be appreciated!

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!