there is a c # program, in it, for example, once a day at 12:00 a certain action must be performed, and in other hours another action.
at 12:00 he did not want to work out.
how to implement it correctly?
DayToday = new DateTime(daynow1.Year, daynow1.Month, daynow1.Day, 12, 0, 0); if (DayToday == DateTime.Now) { Что-то делается } else { Что-то другое делается }
00:00each hour, then the test may or may not take place, depending on the start time of the timer - Grundy