What day of the week was July 31, 1017?

The day of the week July 31st, 1017 fell on was a Thursday.