Roboteka
Roboteka · Robots · Date formatting

Date formatting

The Date formatting robot converts a date into any desired form inside Bitrix24 (Alaio) business processes and robots. It accepts a date in various formats (Y-m-d, d.m.Y, timestamp, ISO) and an output pattern: a numeric PHP format such as d.m.Y or Y-m-d, or the word forms D and Dlong with the month name in the interface language. It returns the ready date string.

The robot converts a date from any recognized format (Y-m-d, d.m.Y, d/m/Y, ISO 8601, Unix timestamp) into a string of the desired form for emails, documents and notifications. Numeric PHP date() patterns — d.m.Y, Y-m-d and any others — work regardless of language. Word formats insert the month name in the app interface language: D gives "15 May 2026", Dlong appends a localized suffix, and mnom and mgen return only the month name in the nominative or genitive case. Typical cases: insert a deal date spelled out into a contract template, build a readable date for a client email, or normalize a date from an external system to a single form. If the date cannot be parsed, the result field is returned empty and an error message is written to the log.

What input parameters does the robot accept?

Parameter Type Required? Default
Date date yes
Format: d.m.Y / Y-m-d / D (15 May 2026) / Dlong (15 May 2026) / custom PHP date() string

What does the robot return?

Parameter Type
Formatted date string

Scenario: a spelled-out date in an email template

  1. The business process takes the deal close date in Y-m-d format
  2. The robot formats it with the D pattern → "15 May 2026"
  3. The ready string is inserted into the client email text

Related robots

Related articles