Day of the week: Difference between revisions

Content added Content deleted
m (→‎using DATE base: used a template for the output section.)
m (→‎using DATE weekday: changed quotes.)
Line 3,664: Line 3,664:
=={{header|REXX}}==
=={{header|REXX}}==
===using DATE weekday===
===using DATE weekday===
The extended DATE parameters (arguments 2 and 3) are only supported by the newer REXX interpreters.
The extended   DATE   parameters (arguments 2 and 3) are only supported by the newer REXX interpreters.
<lang rexx> do year=2008 to 2121
<lang rexx> do year=2008 to 2121
if date('w', year'1225', 's') == 'Sunday' then say year
if date('w', year"1225", 's') == 'Sunday' then say year
end /*year*/</lang>
end /*year*/</lang>
{{out|output}}
{{out|output}}