#Carbon month setter
5 messages · Page 1 of 1 (latest)
We're doing quizzes now? 😂
But yes, those setters start counting from 0
Oh boy. This is why counting from the end of the month is never a good idea
DateTime is funky with adding months. It will increment the month, but if the month doesn't have that number of days, it moves it to the next month. And then it throws off the rest
So 2024-06-31 doesn't exist, and it becomes 2025-07-01