Date Literal Debug

d1 type: Date
d1 value: 31/12/2022 21:00:00
d1 as string: 31/12/2022 21:00:00
VarType(d1): 7 (7=Date)
d2 = DateSerial(2023,1,1): 01/01/2023
d1 does NOT equal d2
Day(d1): 31
Month(d1): 12
Year(d1): 2022