예제 #1
0
 static void Main(string[] args)
 {
     string date1 = Console.ReadLine();
     string date2 = Console.ReadLine();
     DateModifier modifier=new DateModifier();
     Console.WriteLine(modifier.CalculateDaysBetweenTwoDates(date1,date2));
     var s = 0;
 }
예제 #2
0
        static void Main(string[] args)
        {
            string       date1    = Console.ReadLine();
            string       date2    = Console.ReadLine();
            DateModifier modifier = new DateModifier();

            Console.WriteLine(modifier.CalculateDaysBetweenTwoDates(date1, date2));
            var s = 0;
        }
예제 #3
0
        static void Main(string[] args)
        {
            string firsDate   = Console.ReadLine();
            string secondDate = Console.ReadLine();

            DateModifier dates = new DateModifier(firsDate, secondDate);

            Console.WriteLine(dates.DaysBeetweenTwoDate());
        }
        public static void Main()
        {
            var firstDateAsStr  = Console.ReadLine();
            var secondDateAsStr = Console.ReadLine();

            var result = DateModifier.GetDaysBeetwenTwoDate(firstDateAsStr, secondDateAsStr);

            Console.WriteLine(Math.Abs(result));
        }
예제 #5
0
        static void Main(string[] args)
        {
            string firstDate = Console.ReadLine();

            string secondDate = Console.ReadLine();

            DateModifier dateModifier = new DateModifier();

            TimeSpan difference = dateModifier.CalculateDifference(firstDate, secondDate);

            Console.WriteLine(Math.Abs(difference.Days));
        }