Hello everyone.
I have a quick question regarding dates in Structured text.
What I´m trying to do is to take the current date, add/subtract days and save the result to a new variable.
I´m currently using "Date_and_timetocalendarstruct", to split the current date down to "current year", "current month", "current week" and so on.
I want to be able to, for example take the current date and subtract it by one (or any other number) and thus, generating a new date to store away for future use.
I have tried a couple of things so for, regarding applying arithmetic operations to dates, but without success. I hope someone here could point me in the right direction.
Thanks in advance
I have a quick question regarding dates in Structured text.
What I´m trying to do is to take the current date, add/subtract days and save the result to a new variable.
I´m currently using "Date_and_timetocalendarstruct", to split the current date down to "current year", "current month", "current week" and so on.
I want to be able to, for example take the current date and subtract it by one (or any other number) and thus, generating a new date to store away for future use.
I have tried a couple of things so for, regarding applying arithmetic operations to dates, but without success. I hope someone here could point me in the right direction.
Thanks in advance