Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This function returns the day of the week of any given timestamp.


Code Block
titleSyntax
linenumberstrue
 dayOfTheWeek(timestamp, timeZone) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
dayOfTheWeek({issue.duedate},LOCAL)



This example returns day of the week of the issue's due date.

UI Text Box
typeinfo

If the due date was set to April 21st, 2020 00:00, the output would be 3 since this day is a Tuesday.





UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
timestamp

Status
subtletrue
titlenumber

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber
 where Sunday = 1, Monday = 2, ... Saturday = 7


UI Text Box
typetip

If you need the day of the week as a text, please see dayOfTheWeekToString().



Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the day of the week of any given timestamp.

Output

Status
subtletrue
titlenumber

Label