how to figure out if it is morning or evening from datetime in c# code example
Example: check if current time is in the morning c#
TimeSpan time = DateTime.Now.TimeOfDay;
if (time > new TimeSpan(00, 00, 01) //Hours, Minutes, Seconds
&& time < new TimeSpan(08, 00, 00)) {
//match found
}