Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
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

@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

@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") 😉