Skip to main content
July 7, 2023
Question

Regd function : caladddays()

  • July 7, 2023
  • 7 replies
  • 0 views

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.

    7 replies

    stefanhelzle0001
    Brainy
    July 7, 2023

    Sure. caladddays() works with the process calendar by default. a!addDateTime() does not, but can be configured to do.

    July 7, 2023

    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.

    ...

    Inspiring
    July 7, 2023

    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.