When we subtract 44,929 days from 2023-01-03, we get the resulting date of 1899-12-30. Add a column "Number" using formula tool and leverage DateTimeDiff formula to find the difference between the base date and Date column values.
DateTimeDiff([Date],"1899-12-30",'days')
In Alteryx, you can subtract two dates using the DateTimeDiff function. Let’s break down the steps:
- Open Alteryx Designer.
- Drag and drop a Formula tool onto your workflow canvas.
- Configure the Formula tool:
- Run your workflow to see the calculated date difference in the DateDifference field.
The result will be an integer representing the number of days between the two dates. If you need to include fractions of a day (such as hours or minutes), you can adjust the formula accordingly.
Remember to replace days with other time units (e.g., minutes, months, years) if needed.
If you have any more questions or need further assistance, feel free to ask! 😊