# Week Day

This Function returns a *\<numeric>*, which is the index of the day of the specified **Source** Date in the week.

### Parameters

* **Source Date** *\<string> -* Date to get the week day from. This parameter must be in format YYYYMMDD.

### **Examples**

* *Example 1*

Saturday\
WDay("20210227")\
**Result** = 6

* *Example 2*

Sunday\
WDay("20210228") \
**Result** = 0

* *Example 3*

Monday \
WDay("20210301") \
**Result** = 1
