Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Convert timestamp to see seconds

Avatar

Level 2

When using the QueryService in AEP, I realized that the timestamp is only showing datetime format as "05/08/2023, 3:10 PM".

What would be the correct SQL to make the results show the seconds as well? ("05/08/2023, 3:10:54 PM") 

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @kktt,

 

Use the below query to get the complete timestamp in the Query Services UI:

select cast(column_name as string) from table_name;

 

Hope this helps!

 

Regards,

Kumar Saurabh

View solution in original post

3 Replies

Avatar

Employee

Hi @kktt,

Use the Command Line Interface to get the exact view of the data ingested in datalake.

https://experienceleague.adobe.com/en/docs/experience-platform/query/clients/psql

 

Regards,

Kumar Saurabh

 

Avatar

Level 2

Hi @Kumar_Saurabh_ - our company doesn't allow psql on our machines. Is there a sql query that I can use to directly convert the outputs in the query service UI? 

Thanks!

Avatar

Correct answer by
Employee

Hi @kktt,

 

Use the below query to get the complete timestamp in the Query Services UI:

select cast(column_name as string) from table_name;

 

Hope this helps!

 

Regards,

Kumar Saurabh