Difference between revisions of "Manuals/calci/WEEKDAY"
Jump to navigation
Jump to search
| Line 47: | Line 47: | ||
=WEEKDAY(A1): Calculates day of the week from date mentioned in A1. Displays '''4''' (i.e. Wednesday) as a result. | =WEEKDAY(A1): Calculates day of the week from date mentioned in A1. Displays '''4''' (i.e. Wednesday) as a result. | ||
| − | =WEEKDAY(A1,2): Calculates day of the week from date mentioned in A1 and return type '2'. Displays '''3''' (i.e. Wednesday) as a result. | + | =WEEKDAY(A1,2): Calculates day of the week from date mentioned in A1 and return type '2'. <br />Displays '''3''' (i.e. Wednesday) as a result. |
| − | =WEEKDAY(DATE(2013,10,28),3) : Calculates day of the week from date mentioned and return type '3'. Displays '''0''' (i.e. Monday) as a result. | + | =WEEKDAY(DATE(2013,10,28),3) : Calculates day of the week from date mentioned and return type '3'. <br />Displays '''0''' (i.e. Monday) as a result. |
| + | ==Related Videos== | ||
| + | |||
| + | {{#ev:youtube|GnlrbZytkmY|280|center|WEEKDAY}} | ||
| + | |||
== See Also == | == See Also == | ||
Revision as of 20:42, 13 May 2015
WEEKDAY(SN, Type)
where,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SN} represents a date for which day has to be displayed,
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Type} represents the type of return value.
WEEKDAY() displays a number that indicates the day of the week corresponding to a date.
Description
WEEKDAY(SN, Type)
- is a date value to be entered either in 'date format' or 'dates returned using formulas'.
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle SN} values are invalid, Calci displays #N/A error message.
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Type} is the type of return value. It can be from the following -
| Type | Description |
|---|---|
| 0 or 1 or omitted | Number from 1(Sunday) to 7(Saturday) |
| 2 | Number from 1(Monday) to 7(Sunday) |
| 3 | Number from 0(Monday) to 6(Sunday) |
- If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Type} values are invalid, Calci displays #N/A error message.
Examples
Consider the following example that explains the use of WEEKDAY function:
| 10/8/2014 | ||
=WEEKDAY(A1): Calculates day of the week from date mentioned in A1. Displays 4 (i.e. Wednesday) as a result. =WEEKDAY(A1,2): Calculates day of the week from date mentioned in A1 and return type '2'.
Displays 3 (i.e. Wednesday) as a result. =WEEKDAY(DATE(2013,10,28),3) : Calculates day of the week from date mentioned and return type '3'.
Displays 0 (i.e. Monday) as a result.