Read FAQ
NEW
Bitrix24 Support
Registration and Login
Bitrix24 Security
Plans and Payments
AI in Bitrix24
Alaio Vibecode
Employee Widget
Booking
Contact Center
Sales Center
Analytics
BI Builder
e-Signature
Knowledge base
Telephony
Bitrix24 Messenger
General questions
Log In
Your Bitrix24
Authorize to enter
your company's Bitrix24.
Enter

Bitrix24 Helpdesk

Addworkdays function

The addworkdays function adds a specific number of work days to a date.

Syntax

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

Parameters

[date]

Use one of the following values:

  • Variables
  • Template parameters
  • Entity fields
  • A manually entered date
  • The current date and time with {=System:Now}

[number of work days]

Enter an integer from 1 to 250.

  • Minimum value: 1
  • Maximum value: 250

Examples

=addworkdays({=Document:DATE_CREATE}, 1) returns a date that is 1 work day after the document creation date.

=addworkdays('2/2/2024', 1) returns 2/5/2024 (Monday). 2/2/2024 is a Friday, and Saturday and Sunday are set as weekends.


Set work days and holidays

To change weekends or holidays:

  1. Go to Settings.
  2. Open the Business hours tab.

All other days count as work days.

The addworkdays function does not change the original date in the [date] parameter.

For example, if you use the item creation date, the function keeps that value unchanged. It only calculates a new date based on it.

To save the result, store it in a separate field or variable.
Learn how to insert values using special macros

Example use case

You can use the function to set task deadlines automatically.

In this example, the workflow creates a task with a deadline 10 work days after the task creation date.

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

When the workflow runs, the task deadline is set to 10 work days after the creation date.

To insert the calculated date into notifications, tasks, or Feed posts, wrap the function in double curly braces:

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

Was this information helpful?
Thank you for your feedback.
Get Implementation Help from a Partner
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
Get your Bitrix24 set up by local professionals
FIND BITRIX24 PARTNER NEAR ME
implementation_helper_man
Go to Bitrix24
Don't have an account? Create for free
Related articles
Example of using a business process for document approval Import and export workflows templates Dateadd function Expressions in activity parameters Select a workflow type Standard business processes for document approval Configure workflow template parameters