Returns a numeric day-of-the-week value from a Date or DateTime expression.
DOW(dExpression | tExpression [, nFirstDayOfWeek])
- Specifies the Date expression from which DOW(В ) returns the day number.
- Specifies the DateTime expression from which DOW(В ) returns the day number.
Specifies the first day of the week. nFirstDayOfWeek may be one of the following values.
DOW(В ) uses whatever day is currently selected in the Week Starts On list box, which appears on the Regional Tab in the Options dialog box.
Sunday. This is the default when nFirstDayOfWeek is omitted, and is the first day of the week used in earlier FoxPro versions.
STORE DATE( ) TO gdDayNum CLEAR ? DOW(gdDayNum) ? CDOW(gdDayNum)