UNIX Time conversion
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
rmartinez4
8 - Asteroid
‎03-14-2023
02:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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,
Labels:
- Labels:
- Date Time
2 REPLIES 2
14 - Magnetar
‎03-14-2023
02:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@rmartinez4 This is calculated via UTC time zone by the way:
Step1:
Step 2: turn it just to a date
Workflow attached.
All the best,
BS
17 - Castor
‎03-14-2023
02:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
