Example #1
0
        public static void Main(string[] args)
        {
            string input1 = Console.ReadLine();
            string input2 = Console.ReadLine();

            Console.WriteLine(DateModifier.CalculateDifference(input1, input2));
        }
        static void Main(string[] args)
        {
            string       dateOne = Console.ReadLine();
            string       dateTwo = Console.ReadLine();
            DateModifier check   = new DateModifier();

            Console.WriteLine(check.CalculateDifference(dateOne, dateTwo));
        }
Example #3
0
        static void Main(string[] args)
        {
            string       date1 = Console.ReadLine();
            string       date2 = Console.ReadLine();
            DateModifier date  = new DateModifier();

            date.CalculateDifference(date1, date2);
            Console.WriteLine(date.Difference);
        }
        public static void Main(string[] args)
        {
            string startDate = Console.ReadLine();
            string endDate   = Console.ReadLine();

            DateModifier dateModifier = new DateModifier(startDate, endDate);

            Console.WriteLine(dateModifier.CalculateDifference(startDate, endDate));
        }
Example #5
0
        static void Main(string[] args)
        {
            string dateOne = Console.ReadLine();
            string dateTwo = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();

            dateModifier.CalculateDifference(dateOne, dateTwo);
            Console.WriteLine(dateModifier.DaysDifference);
        }
Example #6
0
        public static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();
            double       result       = dateModifier.CalculateDifference(firstDate, secondDate);

            Console.WriteLine(result);
        }
Example #7
0
        static void Main(string[] args)
        {
            DateModifier dateObject = new DateModifier();

            dateObject.CalculateDifference(Console.ReadLine(), Console.ReadLine());
        }