# Confusing dates

**URL:** <https://forum.inductiveautomation.com/t/confusing-dates/77697>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 10, 2023, 2:30pm UTC](https://forum.inductiveautomation.com/t/confusing-dates/77697 "2023-08-10T14:30:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.cascales](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@g.cascales](https://forum.inductiveautomation.com/u/g.cascales)\
**Post date:** [August 10, 2023, 2:30pm UTC](https://forum.inductiveautomation.com/t/confusing-dates/77697/1 "2023-08-10T14:30:56Z")

</div>

Hello there!

Maybe I am confused with something, but why do I get this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/9/191b6879e0964c36df27f3bd57be5cd1501bd8f9.png)

In the doc it is said that Sunday is day 1 and Saturday is day 7.

Thanks in advance.

---

<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:** [August 10, 2023, 2:44pm UTC](https://forum.inductiveautomation.com/t/confusing-dates/77697/2 "2023-08-10T14:44:25Z")

</div>

September 5 is a Tueday and the 6th is a Wednesday. Looks correct to me.

(Quirk of the underlying datatype: January is month zero.)

---

<div class="post-metadata">

**Author:** ![g.cascales](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@g.cascales](https://forum.inductiveautomation.com/u/g.cascales)\
**Post date:** [August 11, 2023, 5:10am UTC](https://forum.inductiveautomation.com/t/confusing-dates/77697/3 "2023-08-11T05:10:10Z")

</div>

thanks @pturmel, what a mistake I made! Forgot that month index started in 0.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [August 11, 2023, 5:14am UTC](https://forum.inductiveautomation.com/t/confusing-dates/77697/4 "2023-08-11T05:14:43Z")

</div>

> [@pturmel](#):
>
> (Quirk of the underlying datatype: January is month zero.)

I wonder now if this has tripped me up anywhere i've used this function 😕 I'm sure I would have assumed 1 = Jan. I know I've accounted for this in some places, but an Ignition `system` library function I would probably assume to be more intuitive
