예제 #1
0
        static void Main(string[] args)
        {
            string dateOne = Console.ReadLine();
            string dateTwo = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();

            Console.WriteLine(dateModifier.GetDifferenceOfTwoDates(dateOne, dateTwo));
        }
        static void Main(string[] args)
        {
            var date1 = Console.ReadLine();
            var date2 = Console.ReadLine();


            var dates = new DateModifier(date1, date2);

            Console.WriteLine(dates.Days(date1, date2));
        }
예제 #3
0
        static void Main(string[] args)
        {
            int[]    inputFirstData = Console.ReadLine().Split().Select(int.Parse).ToArray();
            DateTime firstDate      = new DateTime(inputFirstData[0], inputFirstData[1], inputFirstData[2]);

            int[]    inputSecondData = Console.ReadLine().Split().Select(int.Parse).ToArray();
            DateTime secondDate      = new DateTime(inputSecondData[0], inputSecondData[1], inputSecondData[2]);

            DateModifier date = new DateModifier(firstDate, secondDate);

            Console.WriteLine(date.GetDifference());
        }