Skip to main content
Question

Date format (timestamp) partially work

  • March 3, 2023
  • 3 replies
  • 22 views

Hello, I have a excel database where there is a date column. I try to change the format of this column using this function :

CAST( column_name AS timestamp)

But it shows me a lot of empty value and its not supposed to...

For some raws its working but not all of them

Do you have an idea ?

3 replies

Forum|alt.badge.img+14
  • Level 8
  • March 3, 2023

Hi, you can double check the field if the format is consistent,

 

you can also use TO_TIMESTAMP(column_name ,'YYYY-MM-DD HH:MM:SS') to explicitly define the format of the column_date

 

BR,

Rio


  • Level 9
  • March 6, 2023

Another option would be to test the difference with the CAST(column_name AS DATETIME) option. This works for me at least in data transformations.

 

Another option would be to transform it within the knowledge model using the TO_DATE functionality.

https://docs.celonis.com/en/to_date.html


Hello guys, thanks you for both responses ! Rio's solution is working for me :)