Answer the question
In order to leave comments, you need to log in
How to convert columns to time format?
I don't understand how to do it on columns.
1591044532022001 - value from event_timestamp column
1 591 044 464 658 000.00 - value from user_first_touch_timestamp column
Answer the question
In order to leave comments, you need to log in
Try like this:
SELECT
to_timestamp(('1591044532022001'::bigint)/1000000) ts1,
to_timestamp((regexp_replace('1 591 044 464 658 000,00', '[\s,]','','g')::bigint)/100000000) ts2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question