Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

INT() Function used in Excel converted to Alteryx

gavinloi_
7 - Meteor

Hi all, can I check is there a function that I can use to convert "2024-01-25" to 45316 (which is the number of days that elapsed from Jan 0, 1900).

I have tried to use the TONUMBER but I am getting "2024" instead.

In excel, I would be able to use INT()

Any help is much appreciated.

Thank you

4 REPLIES 4
aatalai
15 - Aurora

@gavinloi_ have you tried tointeger()?

gavinloi_
7 - Meteor

Hi @aatalai the tointeger() function seems to be giving me a Parse Error unknown function. is there a way to use it ?

aatalai
15 - Aurora

sorry misread your question try the formula tool DateTimeDiff([EndDate],Jan 1 1900 (you need to conver that into date format, 'days').

 

 

binuacs
21 - Polaris

@gavinloi_ 

DateTimeDiff([Date],'1900-01-01','days')+2
Labels
Top Solution Authors