SamKr
8/8/2018 - 7:27 AM

Check time range

var start = new TimeSpan(2, 45, 0);
var end = new TimeSpan(4, 0, 0);
var now = DateTime.Now.TimeOfDay;

if ((now > start) && (now < end))
{
    return;
}