Jonathan. Frech’s WebBlog

Weekday (#134)

Jonathan Frech

Determining the weekday based on a date composed of day, month and year.
The program counts up all the days from the 1st of January 1 to the given date, divides it by 7, looks at the remainder and returns the weekday.

Source code: weekday.py