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 18:44, 24 November 2021
, 2 years ago→{{header|Julia}}
Line 38:
<lang julia>using Dates
println("Christmas 2021: ", Dates.format(DateTime(2021, 12, 25), "E, U d, Y")) # "Saturday, December 25, 2021"
println("New Years Day 2022: ", Dates.format(DateTime(2022, 1, 1), "E, U d, Y")) # "Saturday, January 1, 2022"
</lang>
|