Confusing dates

Hello there!

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

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

Thanks in advance.

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

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


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

I wonder now if this has tripped me up anywhere i've used this function :confused: 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