using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
DateTime dt_table = DateTime.Now;
Console.WriteLine(dt_table);
DateTime dt_compare_1 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 12, 0, 0);
DateTime dt_compare_2 = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 1, 0, 0);
if (dt_table > dt_compare_1 && dt_table < dt_compare_2)
Console.WriteLine("Time is between 11 and 12 o'clock");
else
Console.WriteLine("Time is not between 11 and 12 o'clock");
Console.ReadKey();
}
}
}