I would like to convert a date object its integer representation for the day of week in C#. Right now, I am parsing a XML file in order to retrieve the date and storing that info in a string. It is in the following format:
"2008-12-31T00:00:00.0000000+01:00"
How can I take this and convert it into a number between 1 and 7 for the day of the week that it represents?