Hi
I can’t seem to get GetMonth to work.
This always return 1 pn Print Screen, no matter what value i put in.
Same goes for get date.
Am i using it wrong?
Hi
I can’t seem to get GetMonth to work.
This always return 1 pn Print Screen, no matter what value i put in.
Same goes for get date.
Am i using it wrong?
Try using like this - now month is correctly reported. Day is not the day of year, but the day of month, that has to be entered here.
You could use code like this with TimeSpan object to calculate the month from the day of year, here for our current year 2020 - month for the day number 270 as example… Just adding the timespan to the first day of the year
Ha, this node had me confused for some time (ehm, no pun intended), too.
Essentially, it does not convert or count anything per se. It is a date. There’s no such thing in the Gregorian calendar as year 0, there’s 1 BC and AD 1. Neither is there a month 0 (Nullember or something) or Day 0 (Nullsday)
The above is where we start. If you punch in 100 days, it’s simply an invalid value. Max days you can get away with is 31, fewer in certain months and even fewer in Feb.
If you mess up the initial data, you get invalid results - the defaults shown above. The following is still an incorrect date:
There’s no Feb with 30 days.
Ahh ok, so it is basically just a getter function for days and months. Clever trick with the timestamp.
Thank you for the replies, Has made me a whole lot smarter