Beispiel #1
0
        static void Main(string[] args)
        {
            int           data = 0;
            Calc_kalendar A    = new Calc_kalendar(12, 02, 2006);

            A.exc();
            A.ToConsole();
            Calc_kalendar B = new Calc_kalendar(24, 07, 2002);

            B.ToConsole();
            data = A - B;
            Console.WriteLine("Разница между двумя датами {0} дней", data);

            A = A + data;
            A = A + "2";

            A++;
            B--;
            DateTime t1;

            t1 = A.Transeform(A);
            Console.WriteLine(t1);

            Console.ReadLine();
        }
Beispiel #2
0
        public DateTime Transeform(Calc_kalendar k1)
        {
            DateTime t1 = new DateTime();

            t1.AddDays(k1.dday);
            t1.AddMonths(k1.month);
            t1.AddYears(k1.year);



            return(t1);
        }