Please enable JavaScript to view this site.

ESL Documentation

DATELIB Function

Return a string containing the day of the week corresponding to a specified date.

WeekDay(YEAR_IV, MONTH_IV, DAY_IV)

YEAR_IV

A integer indicating the full year of the given date; for example, 1993.

MONTH_IV

An integer representing the month of the given date; for example, 2 for February, 3 for March.

DAY_IV

An integer indicating the number for the day of the given date.

Description

Use this function to return an uppercase string that is the day of the week corresponding to the specified date. If you specify an invalid date, ESL returns the NULL string.

Example

copy ( WeekDay(1994, 8, 3) ) to Day_of_Week_SV