Exemple #1
0
        static void Main(string[] args)
        {
            string startDate = Console.ReadLine();
            string endDate   = Console.ReadLine();

            DateModifier dateModifier = new DateModifier(startDate, endDate);

            Console.WriteLine(dateModifier.DaysDifference());
        }
        public static void Main()
        {
            var firstDate = Console.ReadLine();

            var secondDate = Console.ReadLine();

            var days = new DateModifier();

            Console.WriteLine(days.Diff(firstDate, secondDate));
        }
        static void Main(string[] args)
        {
            string dateOne = Console.ReadLine();
            string dateTwo = Console.ReadLine();

            DateModifier dateDifference = new DateModifier();

            int difference = dateDifference.DifferenceBetween2Dates(dateOne, dateTwo);

            Console.WriteLine(difference);
        }
        static void Main(string[] args)
        {
            string       start = Console.ReadLine();
            string       end   = Console.ReadLine();
            DateModifier dates = new DateModifier(start, end);

            double result = dates.GetDifference();

            if (result < 0)
            {
                result = result * -1;
                Console.WriteLine(result);
            }

            else
            {
                Console.WriteLine(result);
            }
        }