What day of the week was August 31, 1017?

The day of the week August 31st, 1017 fell on was a Sunday.