#Date returns wrong DatePipe value with wrong year

6 messages · Page 1 of 1 (latest)

lapis fable
#

Hey,

After sending Sun Dec 31 2023 23:59:59 GMT+0100 (stredoeurópsky štandardný čas) into date pipe in my template,
Resulting date is 31. Dec 2024 instead of returning YEAR 2023

Any idea why?

radiant dirge
#

Can you try yyyy instead of YYYY ?

#

Not sure if it matters, but there is a difference in the two.

lapis fable
#

@radiant dirge Yeah it worked. Pretty weird why it does that.
Thanks a lot.