示例#1
0
    public static void Main()
    {
        var firstDate  = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", CultureInfo.InvariantCulture);
        var secondDate = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", CultureInfo.InvariantCulture);

        var dateModifier = new DateModifier(firstDate, secondDate);

        dateModifier.CalculateDifference();
    }
示例#2
0
    static void Main(string[] args)
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        DateModifier dateModifier = new DateModifier();

        Console.WriteLine(dateModifier.DateDifference(firstDate, secondDate));
    }
示例#3
0
    public static void Main()
    {
        var first  = Console.ReadLine();
        var second = Console.ReadLine();

        DateModifier diff = new DateModifier();

        diff.GetDifferens(first, second);
    }
示例#4
0
    static void Main()
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

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

        Console.WriteLine(difference);
    }
示例#5
0
    static void Main(string[] args)
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();

        int difference = DateModifier.GetDifferenceBetween(firstDate, secondDate);

        Console.WriteLine(difference);
    }
示例#6
0
    static void Main(string[] args)
    {
        string date1 = Console.ReadLine();
        string date2 = Console.ReadLine();

        DateModifier DM = new DateModifier(date1, date2);

        Console.WriteLine(DM.CalculateDiff());
    }
示例#7
0
    static void Main()
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        DateModifier date = new DateModifier();

        date.GetDayDifference(firstDate, secondDate);
    }
示例#8
0
    public static void Main()
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        int diference = DateModifier.GetDiference(firstDate, secondDate);

        Console.WriteLine(diference);
    }
示例#9
0
    static void Main()
    {
        string       firstDate  = Console.ReadLine();
        string       secondDate = Console.ReadLine();
        DateModifier modifier   = new DateModifier();

        modifier.FindDifference(firstDate, secondDate);
        Console.WriteLine(modifier.DateDifferenceDays);
    }
示例#10
0
    public static void Main()
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        DateModifier dateMod = new DateModifier(firstDate, secondDate);

        Console.WriteLine(dateMod.GetTimeDiff());
    }
    static void Main()
    {
        DateModifier date = new DateModifier();

        date.DateFirst  = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", DateTimeFormatInfo.InvariantInfo);
        date.DateSecond = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", DateTimeFormatInfo.InvariantInfo);

        Console.WriteLine(date.DaysDiff(date.DateFirst, date.DateSecond));
    }
示例#12
0
    public static void Main()
    {
        string firstDateStr  = Console.ReadLine();
        string secondDateStr = Console.ReadLine();

        DateModifier dateModifier = new DateModifier(firstDateStr, secondDateStr);

        Console.WriteLine(dateModifier.DifferenceInDays);
    }
示例#13
0
        public static void Main()
        {
            string firstDate  = Console.ReadLine();
            string secondDate = Console.ReadLine();

            DateModifier date = new DateModifier();

            Console.WriteLine(date.CalculateDifference(firstDate, secondDate));
        }
示例#14
0
    static void Main(string[] args)
    {
        var date1 = Console.ReadLine();
        var date2 = Console.ReadLine();

        var datesToCheck = new DateModifier();

        Console.WriteLine(datesToCheck.DaysDifference(date1, date2));
    }
示例#15
0
    static void Main(string[] args)
    {
        var firstInput  = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", null);
        var secondInput = DateTime.ParseExact(Console.ReadLine(), "yyyy MM dd", null);

        var obj = new DateModifier(firstInput, secondInput);

        Console.WriteLine(obj.DateDiff());
    }
示例#16
0
    static void Main(string[] args)
    {
        string fisrtDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        var date = DateModifier.Modifier(fisrtDate, secondDate);

        Console.WriteLine(date);
    }
示例#17
0
        static void Main(string[] args)
        {
            string       date1       = Console.ReadLine();
            string       date2       = Console.ReadLine();
            DateModifier newModifier = new DateModifier();
            int          days        = newModifier.GetDifference(date1, date2);

            Console.WriteLine(days);
        }
示例#18
0
    public static void Main()
    {
        var dateOne      = Console.ReadLine();
        var dateTwo      = Console.ReadLine();
        var dateModifier = new DateModifier();

        Console.WriteLine(dateModifier.CalculateDaysDiff(dateOne, dateTwo));
        ;
    }
示例#19
0
文件: Program.cs 项目: Uendy/Web-Dev
    public static void Main()
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();

        var dateTime = new DateModifier();

        Console.WriteLine(dateTime.DayDifference(firstDate, secondDate));
    }
示例#20
0
    public static void Main(string[] args)
    {
        string date1 = Console.ReadLine();
        string date2 = Console.ReadLine();

        DateModifier dateModifier = new DateModifier();

        Console.WriteLine(dateModifier.CalculateDifference(date1, date2));
    }
示例#21
0
    public static void Main(string[] args)
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();

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

        Console.WriteLine(diff);
    }
示例#22
0
    public static void Main()
    {
        DateModifier modifier = new DateModifier();

        string date1 = Console.ReadLine();
        string date2 = Console.ReadLine();

        Console.WriteLine(modifier.CalculateDayDifferenceBetweenTwoDates(date1, date2));
    }
示例#23
0
    static void Main()
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();
        var difference = new DateModifier();

        difference.CalculateDifference(firstDate, secondDate);
        Console.WriteLine(difference);
    }
示例#24
0
    static void Main(string[] args)
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();

        var mod = new DateModifier();

        Console.WriteLine(mod.GetDateDifference(firstDate, secondDate));
    }
示例#25
0
    static void Main(string[] args)
    {
        var firstDate  = Console.ReadLine();
        var secondDate = Console.ReadLine();

        var days = new DateModifier();

        days.CalculateDifference(firstDate, secondDate);
        Console.WriteLine(days.DaysDifference);
    }
    static void Main(string[] args)
    {
        var startData = Console.ReadLine();
        var endData   = Console.ReadLine();

        DateModifier diff   = new DateModifier(startData, endData);
        var          result = diff.differenceBetweenDate(startData, endData);

        Console.WriteLine(result);
    }
示例#27
0
    static void Main()
    {
        string firstInput  = Console.ReadLine();
        string secondInput = Console.ReadLine();

        DateModifier dm         = new DateModifier();
        int          difference = dm.CalculateDaysBetweenDates(firstInput, secondInput);

        Console.WriteLine(difference);
    }
示例#28
0
    static void Main(string[] args)
    {
        var firstDate  = DateTime.Parse(Console.ReadLine());
        var secondDate = DateTime.Parse(Console.ReadLine());

        DateModifier date   = new DateModifier();
        var          result = date.CalculateDifference(firstDate, secondDate);

        Console.WriteLine(result);
    }
示例#29
0
    static void Main(string[] args)
    {
        string firstDate  = Console.ReadLine();
        string secondDate = Console.ReadLine();

        DateModifier dateModifier = new DateModifier();
        var          days         = Math.Abs(dateModifier.DifferenceBetweenTwoDates(firstDate, secondDate));

        Console.WriteLine(days);
    }
        static void Main()
        {
            var date1 = Console.ReadLine();
            var date2 = Console.ReadLine();

            DateModifier modifier = new DateModifier();

            modifier.DateDifference(date1, date2);
            Console.WriteLine(modifier.Difference);
        }