Roboteka
Roboteka · Catalog · Day of week for a date

Day of week for a date

The Day of Week robot determines the weekday for a given date in Bitrix24 business processes and robots. It accepts a date as YYYY-MM-DD, DD.MM.YYYY or a timestamp and returns the day number (1 = Monday, 7 = Sunday), the weekday name in Russian and English, and a Y/N weekend flag.

The robot determines the day of week for a date in Bitrix24 business processes and robots. It takes a single Date field — a value from a deal, lead or contact field, or the process start date; supported formats include YYYY-MM-DD, DD.MM.YYYY and Unix timestamp. It returns four values: the day number (1 = Monday, 7 = Sunday), the weekday name in Russian, the name in English, and a Y/N weekend flag (Y only for Saturday and Sunday). Typical use cases: conditional branching — if a request was created on a weekend, postpone processing until Monday; inserting the weekday name into an email or a manager notification. Use the result in a workflow designer condition or in a message template in the next steps of the business process.

What input parameters does the robot accept?

Parameter Type Required? Default
Date date yes

What does the robot return?

Parameter Type
Day number (1=Mon … 7=Sun) int
Name in Russian string
Name in English string
Weekend (Y/N) — Saturday/Sunday only string

Scenario: rescheduling weekend requests

  1. A lead is created and the business process starts automatically
  2. The robot determines the day of week for the lead creation date
  3. If the weekend flag equals Y, the process schedules a manager task for Monday

Related robots