Gets the day of the week in a date value and returns the weekday’s name.
DayName ( date )
Argument |
Description |
---|---|
date |
The date for which you want the name of the day |
String. Returns a string whose value is the name of the weekday (Sunday, Monday, and so on) for date.
This expression for a computed field returns Okay if the day in date_signed is not Sunday:
If(DayName(date_signed) <> "Sunday", "Okay", "Invalid Date")
To pass this validation rule, the day in date_signed must not be Sunday:
DayName(date_signed) <> "Sunday"