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. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting into Date format

dunkindonut7777
8 - Asteroid

Hi I have a data here that I want to add a resigned date. I need to know what/when is the resigned date using the tenure and date hired column. 

 

Staff #DATE HIRED TENUREYearsMonthsDaysResigned Date
7779906/11/20213Years, 1Months, 25Days3Years1Months25Days 
9834932/25/201311Years, 5Months, 11Days11Years5Months11Days 
4385351/21/20204Years, 6Months, 15Days4Years6Months15Days 
4938597/21/20231Years, 0Months, 15Days1Years0Months15Days 
9473955/7/20240Years, 2Months, 29Days0Years2Months29Days 

 

Can you help me with this one?

2 REPLIES 2
cjaneczko
13 - Pulsar

Here is one way to do it. You will need to clean the text out of the Years/Months/Days first.

 

datetimeadd(datetimeadd(datetimeadd(DateTimeParse([DATE HIRED ],'%m/%d/%Y'),tonumber([Years]),'years'),ToNumber([Months]),'months'),ToNumber([Days]),'days')

 

image.pngimage.png

ChrisTX
16 - Nebula
16 - Nebula

Try the attached workflow.  Also become familiar with all of the DateTime Functions (alteryx.com)

 

Screenshot 2024-08-20 091647.png

 

Chris

Labels
Top Solution Authors