The GetDayName procedure returns the day of the week, as a string, for the given date.
day-of-week-name GetDayName( InDate D Const Datfmt(*ISO) : nFormat 10I 0 Const Options(*NOPASS) ) |
| Symbolic Named Constant | Value | Description |
| GD_LONG | 0 | Returns the name as the full day name, such as Monday. This is the default. |
| GD_SHORT | 1 | Returns the name as an abbreviated day name, such as Sun, Mon, Tues, Wed, Thurs, Fri, Sat. |
The return value is the the name of the day of the week as described by the nFormat parameter. The full name or partial name is returned as a varying-length character string that may be assigned to a varying length or fixed-length field.
If the function fails, the return value is an empty string, that is a blank value.