In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start 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
15 - Aurora
15 - Aurora

@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