Day of the week of Christmas and New Year: Difference between revisions

Content added Content deleted
(Add Factor)
m (julia example)
Line 33: Line 33:
In 2393, New Years is on a Friday, and Christmas is on a Saturday.
In 2393, New Years is on a Friday, and Christmas is on a Saturday.
</pre>
</pre>

=={{header|Julia}}==
See also https://docs.julialang.org/en/v1/stdlib/Dates/#Dates.format-Tuple{TimeType,%20AbstractString}
<lang julia>using Dates

println("Christmas 2021: ", Dates.format(DateTime(2021, 12, 25), ", U d, Y")) # "Saturday, December 25, 2021"
println("New Years Day 2022: ", Dates.format(DateTime(2022, 1, 1), ", U d, Y")) # "Saturday, January 1, 2022"
</lang


=={{header|Phix}}==
=={{header|Phix}}==