Hi,
I have a requirement to add the number of working days to the given date. I'm using caladddays() function. Its behaviour is different sometimes. The same thing works as expected when I use a!addDateTime().
Can anyone explain why it happens? Thanks in advance.
Discussion posts and replies are publicly visible
Sure. caladddays() works with the process calendar by default. a!addDateTime() does not, but can be configured to do.
Thanks for the reply Stefan. How can I get exact 24 hours difference using caladddays() function? I gave number of days as 1. I expect the outcome to be exactly 24 hours. But there's time difference.
...
If you use caladddays() function then the result may or may not be exactly 24 hours because it adds working days. For example if there is friday on start date then the resultant date will be that of next Monday.
Thanks for replying Aryan.
Unknown said:For example if there is friday on start date then the resultant date will be that of next Monday
That's fine. Next working day is calculated. But there's time difference. The given time is 2:11 AM EDT. But output is 5:00 AM EDT
Just checked, it is working fine for me. I don't know what is your issue.