Difference between revisions of "DOW()"
From Lianjapedia
Helen.george (Talk | contribs) |
Helen.george (Talk | contribs) |
||
Line 11: | Line 11: | ||
The DOW() function returns a number representing the day of the week from the given date expression <expD> or datetime expression <expT>. | The DOW() function returns a number representing the day of the week from the given date expression <expD> or datetime expression <expT>. | ||
− | {| class="wikitable" width=100% | + | {| class="wikitable" width="100%" |
− | !width=40%|Return Value||Day of Week | + | !width="40%"|Return Value||Day of Week |
|- | |- | ||
|1||Sunday | |1||Sunday |
Revision as of 12:19, 1 February 2013
Contents
Purpose
Function to return numeric day of the week from a specified date
Syntax
DOW(<expD> | <expT> [,<expN>])
See Also
AMPM(), CDOW(), CMONTH(), CTOD(), CTOT(), DATE(), DATETIME(), DAY(), DAYS(), DMY(), DTOC(), DTOM(), DTOS(), DTOV(), ELAPTIME(), EPOCH(), GOMONTH(), HOUR(), HOURS(), MDY(), MINUTE(), MINUTES(), MONTH(), MTOD(), QUARTER(), SEC(), SECONDS(), SECS(), SET CENTURY, SET DATE, SET EPOCH, SET HOURS, SET MARK, SET SECONDS, STOD(), TIME(), TIMESTAMP(), TSTRING(), TTOC(), TTOD(), VALIDTIME(), VTOD(), WEEK(), YEAR()
Description
The DOW() function returns a number representing the day of the week from the given date expression <expD> or datetime expression <expT>.
Return Value | Day of Week |
---|---|
1 | Sunday |
2 | Monday |
3 | Tuesday |
4 | Wednesday |
5 | Thursday |
6 | Friday |
7 | Saturday |
The optional <expN> is used to specify an alternative first day of the week.
Example
set date american ? dow({02/29/2004}) 1 ? dow({02/29/2004},2) 7 store dow({02/29/2004}) to dayofweek ? dayofweek 1 dayofweek = dow({02/29/2004 11:35:27 A.M.}) ? dayofweek 1