Related Topics: | ||
Description: Returns the day of the week corresponding to a specified date.
Syntax: WEEKDAY(Serial_number, Return_type)
Serial_number is a sequential number that represents the date of the day you are trying to find. Dates should be entered by using the DATE function, or as results of other formulas or functions. For example, use DATE(2011,5,23) for the 23rd day of May, 2011. Problems can occur if dates are entered as text (see the NOW function). Note that the Serial_number must be in quotation marks; the date can be entered a text string in a valid date format or as a serial number.
Return_type is a number that determines the type of return value. If Return_type is 1, Sunday = 1 and Saturday = 7; if Return_type is 2, Monday = 1 and Sunday = 7; if Return_type is 3, Monday = 0 and Sunday = 6.
Remarks:
The software stores dates as sequential serial numbers so they can be used in calculations. January 1, 1900 is serial number 1, and January 1, 2011 is serial number 40544 because it is 40,544 days after January 1, 1900. (See the NOW function.)
Example:
If your computer's built-in clock is set to 12:30:00 P.M., 1-Jan-1987, then:
NOW() = 31778.52083
Ten minutes later:
NOW() = 31778.52778
© 1992-2015. ReliaSoft Corporation. ALL RIGHTS RESERVED.