Turn Date into Numerical Value
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Alteryx Community - could someone please help - I have in excel a couple date columns.
One is "Period Date": 9/30/2024 12:00:00 AM
Another is "Maturity date" example: 01/15/2025
I want to calculate how many days in-between - example above being that there are 107 days until maturity. I'm having a difficult time converting a date into a numerical value to be able to calculate the days in between since I keep getting formula error that either the date is in a string format or in a date/time format, so a calculation is not working. Any thoughts here? Thanks
Solved! Go to Solution.
- Labels:
- Error Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @missteran
If you parse your date fields to a date format, and then change date types to date, you can use the datetimediff() function to find the difference in days between themparsing the dates
full workflow
There's more info on date parsing here: https://help.alteryx.com/current/en/designer/functions/datetime-functions.html
Hope that helps,
Ollie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you both - solution has worked. And thank you for sharing the link Ollie
