Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AJAY533633
Contributor
Contributor

How to convert Date and Time of a Field to DD-MM-YYYY HH:MM:SS

Hello !

 

Can one help me on this format below

 

I have column as 'PublishedTime' and the value as 'Jan 28, 2022 10:40 AM

However i would need it as  "DD-MM-YYYY HH:MM:SS" (In 24 Hours Format )

 

Kindly help on the same

 

Thanks in Advance!

Ajay533633

 

Labels (3)
2 Replies
Frank_Hartmann
Master II
Master II

try this:

date(date#(PublishedTime,'MMM DD, YYYY hh:mm TT'),'DD-MM-YYYY hh:mm:ss') as PublishedTime_New

BrunPierre
Partner - Master II
Partner - Master II

Timestamp(Timestamp#(PublishedTime,'MMM DD, YYYY hh:mm TT'),'DD-MM-YYYY hh:mm:ss') as " 24HourPublishedTime"