Forum Discussion
Date.AddDays not working with negative numbers
- 10 months ago
re:"You can see from the following table that when I use positive numbers I get the correct output, and when I use negative I just get today's date (CourseExpiry_Completion_Date1 and CourseExpiry_Completion_Date2):"
When I look at some of your dates in your screen shot:
and I put these data into a plain sheet and do the subtraction there I get:
That means the subtractions are correct.
So have a look at how the values in column ~.DaysUntilExpiry are calculated!
Hi Kerria1276 ,
Since we didnt hear back, we would be closing this thread.
If you need any assistance, feel free to reach out by creating a new post.
Thank you for using Microsoft Community Forum
- Kerria127610 months agoRegular Visitor
Apologies, I have been unwell for a week or so, so wasn't able to respond. This still isn't working for me but I'm happy for the Thread to be closed.