community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Community v19.9

The latest release includes several enhancements designed to improve your Community experience!

Learn More
SOLVED

Convert Date to an Unix format

Asteroid

 

How do I convert a date to an Unix format in Alteryx? For example if i have a date of 17.10.2017 16:19.21 how can i convert that to a Unix date?

Alteryx
Alteryx

The first step will be to convert the field with the date in date field type.

 

Once you now have a date format you can use the DateTimeDiff field and calculate the seconds since 1st January 1970.

 

To do this in one expression using your above format it will look something like:

 

DateTimeDiff(DateTimeParse([DateField],"%d.%m.%Y %H:%M.%S"),"1970-01-01","seconds")

I hope that helps

Labels