Returns the numeric day of the month for a given Date or DateTime expression.
DAY(dExpression | tExpression) |
Parameters
- dExpression
- Specifies a date from which DAY(В ) returns a day of the month. dExpression can be a date literal, a Date-type variable, an array element, or a date field.
- tExpression
- Specifies a date or time from which DAY(В ) returns a day of the month. dExpression can be a DateTime literal, a DateTime-type variable, an array element, or a DateTime field.
Return Value
Numeric
Remarks
DAY(В ) returns a number from 1 through 31.
Example
| В | Copy Code |
|---|---|
STORE {^1998-03-05} TO gdBDate
CLEAR
? CDOW(gdBDate) && Displays Thursday
? DAY(gdBDate) && Displays 5
? 'That date is ', CMONTH(gdBDate), STR(DAY(gdBDate),2) | |
js editor
Web development