What day of the week was May 31, 1040?

The day of the week May 31st, 1040 fell on was a Sunday.