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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
josemaria_cabre
Contributor III
Contributor III

Help with timestamp field

Hi,

I have a timestamp dimension in this format:

2021/02/07 11:04:23.918000000

How do I transform this string to date, with format DD-MM-YYYY hh:mm?

 

Thanks in advance for your help

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra
MVP
MVP

@josemaria_cabre  Maye be :

=timestamp(timestamp#(YOURFIELD,'YYYY/MM/DD hh:mm:ss.ffff'),'DD-MM-YYYY hh:mm')

Example:

for :

=timestamp(timestamp#('2021/02/07 11:04:23.918000000','YYYY/MM/DD hh:mm:ss.ffff'),'DD-MM-YYYY hh:mm')

the output:

Taoufiq_Zarra_0-1612858887834.png

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

1 Reply
Taoufiq_Zarra
MVP
MVP

@josemaria_cabre  Maye be :

=timestamp(timestamp#(YOURFIELD,'YYYY/MM/DD hh:mm:ss.ffff'),'DD-MM-YYYY hh:mm')

Example:

for :

=timestamp(timestamp#('2021/02/07 11:04:23.918000000','YYYY/MM/DD hh:mm:ss.ffff'),'DD-MM-YYYY hh:mm')

the output:

Taoufiq_Zarra_0-1612858887834.png

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉