Change value of DATE_AND_TIME

Hi,

I haven’t tried, but the mathematical way should work, for example like:

Tomorrow := UDINT_TO_DT(DT_TO_UDINT(Today) + 86400);

… with Tomorrow and Today as variables of type DATE_AND_TIME.

Best regards!

1 Like