0

I need your help in converting this event_time to an ASCII SQL formated datatype. A little background: This data was retrieved from a Hadoop Hive data source using Tableau. Also, I was told it's a unix timestamp. I have some extensive research done but seem to not be able to find any solution.

SELECT converted(event_time) from tablename; 

event_time
1610629690320
1610629939669
1610630516715
1610633038207
1610633886798
1610633991600
1610635895132
1610636069966
1610636135413
7
  • 2
    What does a ASCII SQL formated datatype look like? Commented Feb 5, 2021 at 14:29
  • Is that sample table data or the expected result? We need both anyway. Commented Feb 5, 2021 at 14:30
  • PostGres? duplicate of stackoverflow.com/questions/16609722/… Commented Feb 5, 2021 at 14:31
  • What is converted()? Commented Feb 5, 2021 at 14:46
  • This site can help validate unix dates: epochconverter.com Commented Feb 5, 2021 at 15:32

1 Answer 1

0

How to convert unix-timestamp to datetime in Tableau

Create a calculated field:
DATEADD('second', INT([event_time]/1000),#1970-01-01#)

Reference:
https://kb.tableau.com/articles/issue/dates-display-unix-epoch-instead-of-date-datetime?_ga=2.128232396.1788694263.1612488670-1032121342.1608670166

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.