I have this code:
int intDay = DateTime.Now.DayOfWeek;
But that's not working.
Is there a way that I can get an integer value for the day of the week?
I have this code:
int intDay = DateTime.Now.DayOfWeek;
But that's not working.
Is there a way that I can get an integer value for the day of the week?
You need to cast it, as with any other enum:
int intDay = (int)DateTime.Now.DayOfWeek;