Since november only has 30 days, I don’t see the inconsistancy. Did you look at the dates in the debugger? They will show up including a time component. What is this time component saying?
Thank you for the tip … I realized I needed to add 6 days instead of 5 days because I am trimming the datetime (so that I get 11/5/2019 from input 10/31/2019).
As Andreas says, the date looks correct.
If you need the 5th of next month, you could calculate it by using TrimToMonthsUTC on your current date, adding one month to this using AddMonthsUTC, and finally adding 4 days using AddDaysUTC.
Hope this helps.