4-43 ●Use the calendar function
(4) Week number
●Use week number when printing the week of the year.
●One week begins on Monday and ends on Sunday.
●The week including January 4 of that year shall be week one. Making the week including the first Thursday
of the year week one is also another way of saying it.
●The beginning of a year not included in week one becomes the last week of the previous year.
Example of counting week number of end and beginning of year
Monday Tuesday Wednesday Thursday Friday Saturday Sunday Week No.
December
21 22 23 24 25 26 27 52
28 29 30 31 53
January
12353
45 6 789101
11 12 13 14 15 16 17 2
(5) Day of the week
●Use when representing and printing the day of the week using a 1 digit character.
●One week begins on Monday and ends on Sunday.
●When the calendar characters “Day of week” are input, the numbers 1 to 7 are printed. When printing other
representations, set the appropriate substitution rules.
Calendar “Day of the week” printing example
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
Standard 1234567
Substitution rule set
by inputting 1 digit.
AB C DEFG
Substitution rule set
by inputting 3 digits
MON TUE WED THU FRI SAT SUN