Difference between revisions of "Documentation/How Tos/Calc: WEEKDAY function"
From Apache OpenOffice Wiki
< Documentation | How Tos
Javier Lopez (talk | contribs) |
|||
Line 79: | Line 79: | ||
: returns <tt>'''7'''</tt>. 14Jun08 falls on a Saturday. | : returns <tt>'''7'''</tt>. 14Jun08 falls on a Saturday. | ||
− | {{ | + | {{SeeAlso|EN| |
* [[Documentation/How_Tos/Calc: YEAR function|YEAR]] | * [[Documentation/How_Tos/Calc: YEAR function|YEAR]] | ||
* [[Documentation/How_Tos/Calc: MONTH function|MONTH]] | * [[Documentation/How_Tos/Calc: MONTH function|MONTH]] |
Revision as of 07:25, 17 July 2018
CALC FUNCTIONS
< {{#switch:Previous Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} | {{#switch:Next Page | Previous Section = Previous Section | Next Section = Next Section | Previous Page = Previous Page | Next Page = Next Page | }} > |
WEEKDAY
Returns the day of the week for a given date.
Syntax:
WEEKDAY(date; type)
- returns the day of the week that date falls on, as a number.
- The number returned depends on type, as follows:
day of the week | type=1 | type=2 | type=3 |
Sunday | 1 | 7 | 6 |
Monday | 2 | 1 | 0 |
Tuesday | 3 | 2 | 1 |
Wednesday | 4 | 3 | 2 |
Thursday | 5 | 4 | 3 |
Friday | 6 | 5 | 4 |
Saturday | 7 | 6 | 5 |
- If type is omitted, it is assumed to be 1.
Example:
WEEKDAY("2008-06-14"; 1)
- returns 7. 14Jun08 falls on a Saturday.
{{#switch:EN
| RU = Смотрите также:
| UA = Дивіться також:
| EN = See Also
| PT = Ver também
| #default = See Also
}}