Hi all,
i'm currently working on some interactive dashboards which utilize dates alot. I have a strange problem with the getDate function and it's driving me nuts 
These are my params and my custom property:
This is the binding behind the custom property:
It gives me this result :

input for Month is '6', end result gives me '7' 
I'm doing something wrong but i just can't figure it out, it's annoying that sometimes the hard stuff can be easy and the easy stuff can be hard haha. Possible bug or just an oversight on my part?
Many thanks
I never understood why, but you'll need to adjust for that.
Just remove 1 from your month.
2 Likes
This is common in many programming languages. I suspect that the month is zero-indexed because it simplifies text lookup for localisation.
["Jan", "Feb", "Mar", ...]
["January", "February", "March", ...]
["Ιανουάριος", "Φεβρουάριος", "Μάρτιος", ...]
All the other date values (year, day-number, hours, etc.) are numeric only.
Day of week, ["Monday", "Tuesday", ...] would have a similar zero-index but nobody complains about that!
2 Likes
oh my... silly me.
adding the -1 was my solution but it seemed ... wrong
anyway, thanks all for the quick answer