We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert SAS numeric date to an Alteryx date field.

acolburn1
5 - Atom

Hello. I am trying to convert a SAS numeric date (the number of days since 1/1/1960) into an alteryx date field for use in my workflow. I have tried doing this: DateTimeAdd(DateTimeParse('1-1-1960','%m-%d-%Y'),[EXP_DT],"days") where [EXP_DT] is my numeric date, or number of days to be added.

 

But it tells me that the second argument should not be a number.

 

Let me know if you have any ideas.

 

Thanks!

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@acolburn1 
First time to know SAS numeric date.

I tried your formula and it works just fine on my end.

So maybe we should check if the input  [EXP_DT] is really a numeric field or not.

1203-acolburn1.PNG1203-acolburn1-1.PNG

acolburn1
5 - Atom

Yep, forgot to reformat as an integer. Thanks for the reply!

Qiu
21 - Polaris
21 - Polaris

@acolburn1 

Glad to help and thank you for the accept mark!

Labels
Top Solution Authors