Quote:DateTime start = new DateTime(2015,05,19,11,00,00,00); DateTime end = new DateTime(2015,05,20,6,00,00,00); TimeSpan timespan; timespan = end - start; double timeDifference = timespan.TotalHours; Console.WriteLine("Time Difference is :" + timeDifference); Console.ReadKey();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)