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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to convert datetime to number

Hi Everyone,

I have the following datetime format:

12/11/2010 15:30:00 

I would like to know how I can convert this date to look as follow:

20101112153000

Thanks

2 Replies
MK_QSL
MVP
MVP

TimeStamp(TimeStamp#('12/11/2010 15:30:00','DD/MM/YYYY hh:mm:ss'),'YYYYMMDDhhmmss')

If it is DD/MM then change accordingly..

sasiparupudi1
Master III
Master III

if your datatime is not a string,you could use

TimeStamp(YourDateTime,'YYYYMMDDhhmmss')


if it is a string value, then you need to convert it using timestamp#

TimeStamp(TimeStamp#('12/11/2010 15:30:00','DD/MM/YYYY hh:mm:ss'),'YYYYMMDDhhmmss')


hth

Sasi