Day of the week of Christmas and New Year: Difference between revisions
Content added Content deleted
No edit summary |
(Added Wren) |
||
Line 23: | Line 23: | ||
This year's Christmas is on a Saturday |
This year's Christmas is on a Saturday |
||
Next new year is on a Sunday |
Next new year is on a Sunday |
||
</pre> |
|||
=={{header|Wren}}== |
|||
{{libheader|Wren-date}} |
|||
<lang ecmascript>import "./date" for Date |
|||
var xmas = Date.new(2021, 12, 25) // xmas and new year's weekdays are always the same |
|||
var weekday = xmas.weekDay |
|||
System.print("Christmas day, 2021 will fall on %(weekday).") |
|||
System.print("New year's day, 2022 will also fall on %(weekday).")</lang> |
|||
{{out}} |
|||
<pre> |
|||
Christmas day, 2021 will fall on Saturday. |
|||
New year's day, 2022 will also fall on Saturday. |
|||
</pre> |
</pre> |