# Week Day

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/expressions/functions/date-functions/week-day
>
> WDay returns the index of the weekday of a YYYYMMDD date, from 0 for Sunday to 6 for Saturday.

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
