Day of the week of Christmas and New Year: Difference between revisions
Day of the week of Christmas and New Year (view source)
Revision as of 19:55, 1 December 2021
, 2 years agoaddooRexx
(Realize in F#) |
Walterpachl (talk | contribs) m (addooRexx) |
||
Line 116:
Year 2393, New Years's Day: Friday, January 1, 2393 and Christmas: Saturday, December 25, 2393
</pre>
=={{header|ooRexx}}==
<lang oorexx>/* REXX */
Call wkd 2021,12,25
Call wkd 2022,01,01
Exit
wkd:
Parse Arg y,m,d
wd=.Array~of('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday')
dt=.DateTime~new(y,m,d)
say d'.'m'.'y 'is a' wd[dt~weekday]
Return</lang>{{out}}
<pre>25.12.2021 is a Saturday
01.01.2022 is a Saturday<</pre>
=={{header|Perl}}==
|