Use
day1 = (int)ClockInfoFromSystem.DayOfWeek;
More Related Contents:
- DateTime.DayOfWeek micro optimization
- In C#, is there any more elegant way to take a DateTime and calculate how many months until the "next" Quarter? [closed]
- C# how do i create a DateTime Variable that has the current date, but a different time? [closed]
- Given a DateTime object, how do I get an ISO 8601 date in string format?
- Convert UTC/GMT time to local time
- Is DateTime.Now the best way to measure a function’s performance? [closed]
- How to create a .NET DateTime from ISO 8601 format
- Specifying a custom DateTime format when serializing with Json.Net
- How to know if a DateTime is between a DateRange in C#
- Change system date programmatically
- Stopwatch vs. using System.DateTime.Now for timing events [duplicate]
- Showing Difference between two datetime values in hours
- extract the date part from DateTime in C# [duplicate]
- How to format DateTime to 24 hours time?
- Convert AM/PM time to 24 hours format?
- How do I get the AM/PM value from a DateTime?
- How do you get the current time of day?
- How can I convert a DateTime to the number of seconds since 1970?
- DateTime.AddDays() not working as expected
- Get DateTime.Now with milliseconds precision
- How to parse and generate DateTime objects in ISO 8601 format
- How to convert DateTime in Specific timezone?
- DateTime.Parse(“2012-09-30T23:00:00.0000000Z”) always converts to DateTimeKind.Local
- How to get nullable DateTime out of the database
- Change default date serialization in WCF
- Convert Date from Persian to Gregorian
- Unix time conversions in C# [duplicate]
- Datetime format Issue: String was not recognized as a valid DateTime
- .NET: Why is TryParseExact failing on Hmm and Hmmss?
- How can I parse dates with a suffix “th”, “st” or “nd” on the day of the month?