Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Note: AQL is not listed in the tags, so using SQL as a category. Apologies for that.

I am running ariel query in QRadar to get datetime format. But it's showing only date/time and not AM/PM.

Query: select DATEFORMAT(1446125637000,'dd-MM-yyyy hh:mm:ss') from events limit 1
This query is to convert bigint to datetime format.

Please help.
Thanks in advance
Posted
Updated 29-Oct-15 5:34am
v2
Comments
Richard MacCutchan 29-Oct-15 13:01pm    
You need to check the documentation to see what other format strings are supported.

1 solution

You could also take a look at http://www.w3schools.com/sql/func_date_format.asp[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900