Here’s the background:
What Day(1)
does is first converts 1
to DateTime, resulting in 12/31/1899
, then take a month day out of it, which is 31.
Days(x)
sorta does nothing because 1 day = 1 as a number. It’s just syntactic sugar.
So Date(2021, 11, 1) + Day(1)
is the same as Date(2021, 11, 1) + 31
and also the same as Date(2021, 11, 1) + Days(31)
But yes, easy to confuse.
1 Like