Пример #1
0
        static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            var diff = new DateModifier();

            Console.WriteLine(diff.FindDifference(firstDate, secondDate));
        }
Пример #2
0
        static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();


            Console.WriteLine(dateModifier.GetDifference(firstDate, secondDate));
        }
Пример #3
0
        static void Main(string[] args)
        {
            var dateOne = Console.ReadLine();
            var dateTwo = Console.ReadLine();

            DateModifier difference = new DateModifier();

            var result = difference.FindDifference(dateOne, dateTwo);

            Console.WriteLine(result);
        }
        public static void Main(string[] args)
        {
            string date1 = Console.ReadLine();
            string date2 = Console.ReadLine();

            DateModifier date = new DateModifier(date1, date2);

            int result = Math.Abs(date.DateDifference(date1, date2));

            Console.WriteLine(result);
        }