static void Main(string[] args) { var firstDate = DateTime.Parse(Console.ReadLine()); var secondDate = DateTime.Parse(Console.ReadLine()); var difference = DateModifier.GetDifference(firstDate, secondDate); Console.WriteLine(difference); }
static void Main(string[] args) { string firstDate = Console.ReadLine(); string secondDate = Console.ReadLine(); DateModifier date = new DateModifier(); Console.WriteLine(date.GetDifference(firstDate, secondDate)); }
static void Main(string[] args) { string firstDate = Console.ReadLine(); string secondDate = Console.ReadLine(); TimeSpan timeSpan = DateModifier.GetDifference(firstDate, secondDate); Console.WriteLine(Math.Abs(timeSpan.Days)); }
static void Main(string[] args) { string firstDate = Console.ReadLine(); string secondDate = Console.ReadLine(); double result = DateModifier.GetDifference(firstDate, secondDate); //static class and method on DateModifier Console.WriteLine(result); }
static void Main(string[] args) { string firstDate = Console.ReadLine(); string secondDate = Console.ReadLine(); DateModifier difference = new DateModifier(); double days = difference.GetDifference(firstDate, secondDate); Console.WriteLine(Math.Abs(days)); }