Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help
in Search

Calculate DateTime excluding weekends

Last post 05-26-2012, 1:19 PM by Christian Bauer. 3 replies.
Sort Posts: Previous Next
  •  08-04-2011, 8:35 AM 18614

    Calculate DateTime excluding weekends

    Hi,

    Is it possible to calculate a date time excluding weeknds using Out Of Box features of Nintex.

    if i say Initial Date + 5 it should add 5 working days to Initial Date.

    I know there is setting for inbuilt nintex features like reminder. I need this while calculating date time.

    Any suggestions?

    Thanks,

    Kammela

  •  08-08-2011, 7:36 AM 18658 in reply to 18614

    Re: Calculate DateTime excluding weekends

    Can any one please suggest on this?
  •  08-16-2011, 5:59 AM 18784 in reply to 18658

    Re: Calculate DateTime excluding weekends

    Hi,

    At the moment there is no option to do this out of the box.

    It has been added as a product suggestion for a furture build.

  •  05-26-2012, 1:19 PM 23170 in reply to 18784

    Re: Calculate DateTime excluding weekends

    I also had the requirement to calculate a date by adding a number of business days to a start date. Weekends and holidays must not be counted.

    I found a solution using Nintex out-of-the box actions only. As this is a quite frequent requirement, I wanted the solution to be reusable. So I clicked together a Nintex User Defined Action to share it.

    You may download the User Defined Action for free from www.dox42.com/WorkflowUtils.aspx

    The User Defined Action takes a start date and a number of business days as input parameters and returns the due date.

    The algorithm basically loops though all dates for two weeks from the start date and counts down the business days.
    To test for a weekend it uses “fn-FormatDate({WorkflowVariable:testDate},ddd)”to see if it’s a Saturday or Sunday.
    To find a holiday it queries a Sharepoint list named “Holidays” which must contain the Title, Day, Month, Year and a Boolean Field “Annual” for each holiday. For annual holidays like New Year’s Eve the year is ignored. I would have preferred using the Nintex managed holidays, but couldn’t find a way to access the values using the Nintex query list action.

    Managing holidays in a list takes a little effort, but finally it took me 20 minutes to look up the movable holidays for the next couple of years and enter them to the list - good to go. The reward is that you can manage local and organization-specific holidays as well.

    Cheers

    Christian Bauer
    www.dox42.com        

    Filed under:
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems