The DayOfWk command

dayofwk.png

Command Summary

Returns an integer from 1-7 that shows what day of week it is for a specific date.

Command Syntax

dayOfWk(year, month, day)

Menu Location

This command can't be found in any menu besides the command catalog.

Calculator Compatibility

This command requires a calculator with AMS version 2.07 or higher (it will also work on any TI-89 Titanium or Voyage 200 calculator)

This command returns an integer from 1 through 7 which shows what day of the week it was on a certain date. The Ti-89 Titanium manual says that this function may not give accurate results for years prior to 1583 (pre-Gregorian calendar).

Integer value: Day of the week:
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 Thursday
6 Friday
7 Saturday
:dayOfWk(1948,9,6)
:      2
:dayOfWk(1600,1,15)
:      7

The above examples find that September 6th,1948 was a Monday, and that January 15th, 1600 was a Saturday. It also works with future dates, in case you want to use that in a program.

Related Commands

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License