dayname PowerHome formula function
Description
Given a valid date value (either the output of a function eg, today() or a date 'literal' value such as 2010-12-15) this function returns the name of the weekday.

See the  Date / Time Functions  section for detailed information concerning date / time formats.

Syntax
dayname ( date )
Argument Description
date The date value for which you want the name of the day

Return value
String. Returns a string whose value is the name of the weekday (Sunday, Monday, and so on) for date.

Examples
The following examples demonstrate typical syntax/usage for this function.
• dayname(today()) --> evaluates to: Thursday
• dayname(2010-12-15) --> evaluates to: Wednesday
• dayname("2010-12-15") --> Fails (string value vs date value. Use dayname(date("2010-12-15")) for this format)