SOLVED
INT() Function used in Excel converted to Alteryx
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
gavinloi_
7 - Meteor
‎01-30-2024
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
4 REPLIES 4
aatalai
14 - Magnetar
‎01-30-2024
05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@gavinloi_ have you tried tointeger()?
‎01-30-2024
05:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @aatalai the tointeger() function seems to be giving me a Parse Error unknown function. is there a way to use it ?
aatalai
14 - Magnetar
‎01-30-2024
05:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
‎01-30-2024
06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DateTimeDiff([Date],'1900-01-01','days')+2
