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

Received Response
11
Views
1
Comments
edited Jul 23, 2021 2:39PM in Customer Portal 1 comment

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!