PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloper’s Guide

Format DateTime

Turns a date and time into text, in exactly the format and language you write.

Format DateTime writes a Date and time value as text, in a format you write yourself, for example Saturday, 15 June 2024 or 2024-06-15_1345. Use it for file names, email subjects, documents and API fields that expect a specific date shape. If one of the standard shapes is enough, DateTime To String lets you pick it from a list.

Add the action

In the Process Designer toolbox, open DateTime and pick Format DateTime (or type Format DateTime in the search box).

The Format DateTime action properties: Datetime, Language, Format and Formatted Datetime

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
DatetimeInputDate and timeYesThe date and time to format.
LanguageInputOption listYesThe language for month and day names. Options: Română (RO), English (UK), English (US), Ελληνικά (GR), Español (ES), 中国人 (CN), Pусский (RU), Deutsch (DE), हिन्दी (IN), عربي (UAE), Français (FR). Default English (US).
FormatInputTextYesThe format to write, built from the codes below.
Formatted DatetimeOutputTextYesThe date as text.

Format codes

CodeMeaningExample (15 June 2024, 13:45:30)
yyyy / yyYear2024 / 24
MM / MMonth number06 / 6
MMM / MMMMMonth name, short / fullJun / June
dd / dDay of the month15
ddd / ddddDay name, short / fullSat / Saturday
HHHour, 24-hour clock13
hh + ttHour, 12-hour clock, with AM/PM01 PM
mmMinutes45
ssSeconds30
zzzUTC offset+00:00
'text'Fixed text, copied as it is'Report of'

The full list is in Microsoft's custom date and time format strings.

Example

All rows use the Datetime 2024-06-15T13:45:30.

LanguageFormatFormatted Datetime
English (US)dddd, dd MMMM yyyy HH:mmSaturday, 15 June 2024 13:45
Română (RO)dddd, dd MMMM yyyy HH:mmsâmbătă, 15 iunie 2024 13:45
Français (FR)dd MMM yyyy15 juin 2024
English (US)hh:mm tt01:45 PM
English (US)yyyy-MM-ddTHH:mm:ss2024-06-15T13:45:30
English (US)'Report of' d MMMReport of 15 Jun
English (US)d6/15/2024

Good to know

  • One letter alone is a standard format, not a code: d gives the short date (6/15/2024), not the day 15. To get only the day number, use Get Day.
  • Words in the format need single quotes, otherwise their letters are read as codes: write 'Report of' d MMM, not Report of d MMM.
  • Time zone: a value with a UTC offset is converted to UTC first. 2024-06-15T13:45:30+03:00 with yyyy-MM-dd HH:mm zzz gives 2024-06-15 10:45 +00:00. To show local time, convert it first with Timezone Converter.
  • An empty Format stops the step with Format Error: Please provide a non-empty Format !. A format that is not valid (for example % alone) stops it with Input string was not in a correct format.

On this page