# Calendar component and dateFormat bug

**URL:** <https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 30, 2025, 10:55am UTC](https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022 "2025-12-30T10:55:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathan.ramusat](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@nathan.ramusat](https://forum.inductiveautomation.com/u/nathan.ramusat)\
**Post date:** [December 30, 2025, 10:55am UTC](https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022/1 "2025-12-30T10:55:56Z")

</div>

Hello,

I’ve encountered a strange bug on the calendar component regarding the date it returns when I apply a dateFormat() onto it’s “Immediate Date” property.

It looks like it updates the year a bit too soon, jumping for example from the 27th of December 2025 to the 28th of December 2026. The following days are also in the wrong year before going to January. In the attached pictures you can find what I expose (down-left part of the pictures - up is the date simply reported, down is the formatted date). Is it because of the week counting ?

Best regards

 ![Bug calendrier image 1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8fad3e80138070b9adff3ceadef55e5e8d696e6d.png)

 ![Bug calendrier image 2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/9/b933578d5b0064a8a44ee3784f23f4a070eaf8d4.png)

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [December 30, 2025, 12:22pm UTC](https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022/2 "2025-12-30T12:22:52Z")

</div>

This is probably because somewhere in the scripts is a date conversion using `YYYY-MM-dd` instead of `yyyy-MM-dd` giving you the week date instead of the true date. I would check the binding on that label and see where it's coming from.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 30, 2025, 1:40pm UTC](https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022/3 "2025-12-30T13:40:49Z")

</div>

This kind of question pops up every year about this time, since "week year" typically changes to the new year "early". Take a closer look at the docs for date formatting characters.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 30, 2025, 5:44pm UTC](https://forum.inductiveautomation.com/t/calendar-component-and-dateformat-bug/113022/4 "2025-12-30T17:44:07Z")

</div>

See [dateFormat returning the wrong year - #7 by Transistor](https://forum.inductiveautomation.com/t/dateformat-returning-the-wrong-year/100310/7) and the rest of the thread.
