How to get the day of the week in integer format? I know that ToString will only return a string.
DateTime ClockInfoFromSystem = DateTime.Now; int day1; string day2; day1= ClockInfoFromSystem.DayOfWeek.ToString();
c # datetime date-conversion dayofweek
akshaykumar6 Feb 08 '12 at 18:14 2012-02-08 18:14
source share