PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Get Day Of Week

Returns the position of a date in its week, as a number, with the numbering you choose.

Get Day Of Week returns which day of the week a date is, as a number. You choose whether the week starts on Sunday or on Monday, and whether counting starts at 0 or 1. Use it to schedule work for a given weekday, or to calculate how many days are left until the end of the week.

Add the action

In the Process Designer toolbox, open DateTime and pick Get Day Of Week (or type Get Day Of Week in the search box).

The Get Day Of Week action properties: Date, Numbering and Day Number

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
DateInputDate and timeYesThe date to check.
NumberingInputOption listYesHow days are numbered. See the table below.
Day NumberOutputIntegerYesThe number of the day in its week.
NumberingMondayTuesdayWednesdayThursdayFridaySaturdaySunday
Week begins on Sunday (1) and ends on Saturday (7)2345671
Week begins on Monday (1) and ends on Sunday (7)1234567
Week begins on Monday (0) and ends on Sunday (6)0123456

Example

DateNumberingDay Number
2026-11-08 (Sunday)Week begins on Sunday (1)โ€ฆ1
2026-11-08 (Sunday)Week begins on Monday (1)โ€ฆ7
2026-11-08 (Sunday)Week begins on Monday (0)โ€ฆ6
2026-11-09 (Monday)Week begins on Sunday (1)โ€ฆ2
2026-11-09 (Monday)Week begins on Monday (1)โ€ฆ1
2026-11-09 (Monday)Week begins on Monday (0)โ€ฆ0

Good to know

  • You get a number, not a name. For the name (Monday, luni, Montagโ€ฆ), use Format DateTime with the format dddd and the language you need.
  • A date with a UTC offset is first converted to UTC. An empty Date stops the step with an error.

On this page