Read FAQ
NEW
Bitrix24 Support
Registration and Authentication
How to start
My Profile
Feed
Chats and Calls
Calendar
Bitrix24.Docs
Bitrix24.Drive
Bitrix24.Mail
Workgroups
Tasks and Projects
CRM
CoPilot - AI in Bitrix24
Contact Center
Sales Center
CRM Analytics (beta)
BI Builder
Sales Intelligence
Inventory Management
Marketing
Sites
Online Store (beta)
CRM + Online Store
CRM Store (beta)
Bitrix24.Sign
Company
Knowledge base (beta)
Automation
Workflows
Telephony
Market
Subscription
Settings
Enterprise
Mobile App
Desktop App
General questions
Bitrix24 On-Premise

Bitrix24Care

Addworkdays function

The addworkdays function allows you to add a certain number of work days to the specified date.

This is how it looks:

=addworkdays([date], [number of work days])

In the [date] section, you can use variables, template parameters, or entity fields. Also, you can enter any date manually or set the current time and date using {=System:Now}.

In the [number of work days] section, use any integer from 1 to 250. Thus, you can add at least 1 work day to the specified date, or 250 work days at the most. For example:

=addworkdays({=Document:DATE_CREATE}, 1): The resulting date will be 1 work day later than the document creation date.

=addworkdays('2/2/2024', 1): The resulting date will be 2/5/2024 (Monday) since 2/2/2024 is Friday and Saturday and Sunday are specified as weekends in settings.

To edit weekends and holidays, go to Settings and open the Business hours tab. All other days will be considered working days.

The addworkdays function does not change the date specified in the [date] section. If you use the creation date of an item, this date will not be modified. The function just adds the specified number of work days to it. To save the resulting date value, insert it in a separate field or variable.
Learn how to insert values using special macros

Use case

The function is commonly used to automatically calculate the deadline for a task based on its creation date. Let's consider the following example and create a task that needs to be done in 10 working days.

  1. Add the Create task activity to your workflow.
  2. Insert =addworkdays({=System:Now}, 10) in the Deadline field.

  3. Run your workflow to create a task. The deadline will be set 10 work days later than the creation date.

To use the resulting date as text in notifications, tasks, or Feed posts, enclose the function in curly brackets:

{{=addworkdays ({=System:Now}, 10)}}

Was this information helpful?
Integration specialist assistance
That's not what I'm looking for
Complicated and incomprehensible text
The information is outdated
It's too short. I need more information
I don't like the way this tool works
Go to Bitrix24
Don't have an account? Create for free