Notification

Please be advised that the Customer Support team does not provide troubleshooting services in your current display language. To contact Support team staff, please first switch to English or other supported languages (Spanish, Portuguese or Japanese). 

weekday

Returns the day of the week (1 to 7) for the specified date. By default, the function starts counting on Sunday (1 = Sunday, 2 = Monday and so on). For example, the function returns:

  • 1 for Sunday, 1 January 2012
  • 2 for Monday, 31 December 2012

Syntax

weekday(date)

Parameters

date can be any of the following:
  • Another function that returns a date.
  • A formula column that returns a date.

Examples

  • If today is Sunday, 1 January 2012, the following function returns 1:
    weekday(today())
  • If 31 December 2013 is a Tuesday, the following function returns 3:
    weekday(date(2013,12,31))

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Main menu
14002232550389242432
true
Search Help Centre
true
true
true
true
true
5055977
false
false