SyntaxFix
Write A Post
Hire A Developer
Questions
Try this. It will work just fine:
int week = Convert.ToInt32(currentDateTime.DayOfWeek);