示例#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));
        }