DayOfWeek (Date dateTime)

Example

In this example, we will pass a date time value to the function transformation object using a Variables object.

Where,

dateTime = 07/14/2022

In the output window, you can see that the day of the week, Thursday, has been returned in its integer form, 4.