This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Do you use Alteryx in a language other than English? If so, we want to hear from you! Please help us improve the international experience of our products by participating in this 5 minute survey.
We are updating the requirements for Community registration. As of 7/21/21 all users will be required to register a phone number with their My Alteryx accounts. If you have already registered, you will be prompted on your next login to add your phone number.
Hi @Raj008 o.k. so 1/12/2021 is either December 1st or January 12th. January 1st 1/1/2021. But here's the key - I need to know which column is date and which column is month:
datetimeparse([Field1],"%d/%m/%Y") (formula tool - new field date)
datetimeparse([Field1],"%m/%d/%Y") (formula tool - new field date)
The first tool has "%d" first - that means it's day/month/Year
the second tool has "%m" first - that means it's month/day/Year
Datetimeparse converts a string to date based upon how the string is configured and what datetime format options are provided... The direct string to date comparison in Alteryx is "2021-01-01" for January 1st, 2021. or "2021-01-02" for January 2nd (ie YYYY-mm-dd)... you can capture the hours/minutes/seconds as well. and you can even capture everything and then extract the string components you need.