Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string startDate = Console.ReadLine();
            string endDate   = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();

            Console.WriteLine(dateModifier.GetDifference(startDate, endDate));
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            int days = DateModifier.GetDiffBetweenDatesInDays(firstDate, secondDate);

            Console.WriteLine(days);
        }
Ejemplo n.º 3
0
        public static void Main()
        {
            DateModifier twoDates = new DateModifier(
                DateTime.Parse(Console.ReadLine()), DateTime.Parse(Console.ReadLine()));

            int differenceInDays = twoDates.DateDifferenceInDays();

            Console.WriteLine(differenceInDays);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            long days = Math.Abs(DateModifier.DifferenceBetweenDates(firstDate, secondDate));

            Console.WriteLine(days);
        }
        static void Main()
        {
            var firstDate  = Console.ReadLine();
            var secondDate = Console.ReadLine();

            var diff = DateModifier.DifferenceBetweenTwoDates(firstDate, secondDate);

            Console.WriteLine(diff);
        }
Ejemplo n.º 6
0
        public static void Main()
        {
            var firstDate  = Console.ReadLine();
            var secondDate = Console.ReadLine();

            var difference = DateModifier.CalculateDifferenceBetweenDate(firstDate, secondDate);

            Console.WriteLine(difference);
        }
        public static void Main()
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            var diffrence = new DateModifier(firstDate, secondDate);

            Console.WriteLine(diffrence.DateDiffrence);
        }
Ejemplo n.º 8
0
        static void Main(string[] args)
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            DateModifier modifier = new DateModifier();

            modifier.GetDifferenceBetweenTwoDates(firstDate, secondDate);
            Console.WriteLine(modifier.differenceBetweenTwoDates);
        }
Ejemplo n.º 9
0
        public static void Main()
        {
            var date1 = Console.ReadLine();
            var date2 = Console.ReadLine();

            var dateDiff = new DateModifier();

            dateDiff.CalculateDifference(date1, date2);
            Console.WriteLine(dateDiff.Difference);
        }
Ejemplo n.º 10
0
        public static void Main()
        {
            //1992 05 31          8783
            //2016 06 17

            string firstD  = Console.ReadLine();
            string secondD = Console.ReadLine();
            int    days    = DateModifier.GetDiffBetweenDatesInDays(firstD, secondD);

            Console.WriteLine(Math.Abs(days));
        }
Ejemplo n.º 11
0
        static void Main(string[] args)
        {
            string firstDate = Console.ReadLine();

            string secondDate = Console.ReadLine();

            DateModifier dateDifference = new DateModifier();
            var          days           = dateDifference.GetDays(firstDate, secondDate);

            Console.WriteLine(days);
        }
        public static void Main(string[] args)
        {
            var dateOne = Console.ReadLine();
            var dateTwo = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();

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

            Console.WriteLine(result);
        }
Ejemplo n.º 13
0
        public static void Main()
        {
            var first  = Console.ReadLine();
            var second = Console.ReadLine();

            var dateModifier = new DateModifier
            {
                FirstDate  = first,
                SecondDate = second
            };

            Console.WriteLine(dateModifier.CalculateDifferenceBetweenTwoDates());
        }
Ejemplo n.º 14
0
        static void Main()
        {
            string first  = Console.ReadLine();
            string second = Console.ReadLine();

            var firstDate  = SplitDate(first);
            var secondDate = SplitDate(second);

            var dateModifier_1 = new DateModifier(firstDate[0], firstDate[1], firstDate[2]);
            var dateModifier_2 = new DateModifier(secondDate[0], secondDate[1], secondDate[2]);

            Console.WriteLine(dateModifier_1.FindDifference(dateModifier_2));
        }