Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Don't miss out on our Weekly Quiz! You only have until April 11, 2PM EST to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

How to return the full date/time object in SuiteQL?

edited Jan 18, 2023 6:55PM in Ask A Guru 4 comments

I am using the query API to run queries using SuiteQL, something like the following:

curl --location --request POST 'https://<account id>.suitetalk.api.netsuite.com/services/rest/query/v1/suiteql' \
--header 'Authorization: Bearer <> \
--header 'Prefer: transient' \
--header 'Content-Type: application/json' \
--data-raw '{
    "q": "SELECT * from transaction left join customer on transaction.entity=customer.id"

Now I noticed that there are fields like createddate that are of type date time, but still in the return result I am getting only the date part - "29/12/2022" for example.

My question is: How do I tell the API to return the full date time object?

Howdy, Stranger!

Log In

To view full details, sign in.


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


Community Whiz

Quarter 1 (Jan-Mar 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders