Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

UNIX Time conversion

rmartinez4
8 - Asteroid

Hi I have a Json file that I pull in data with field that contains a unix time of 1678818797. Is possible to assist on how to convert this into Datetime and then to a date.

 

 

Thank You,

2 REPLIES 2
BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@rmartinez4 This is calculated via UTC time zone by the way:

BS_THE_ANALYST_0-1678829711555.png

Step1:

BS_THE_ANALYST_1-1678829719847.png

Step 2: turn it just to a date

BS_THE_ANALYST_2-1678829736697.png

 

Workflow attached.

All the best,
BS

 

All the best,
BS

LinkedIN

Bulien
DataNath
17 - Castor
17 - Castor

Hey @rmartinez4, whenever we have a UNIX field, the way to convert this to a DateTime is to add that number of seconds to the 1st of January, 1970. Using DateTimeAdd to do that in Alteryx, we get the full timestamp as seen in the [DateTime] field. In order to have it as Date only, we just need to change the Data Type in the drop down of the Formula:

 

DataNath_0-1678829777192.png

Labels
Top Solution Authors