using System;
namespace Working_with_Dates
{
class Program
{
static void Main(string[] args)
{
DateTime birth = new DateTime(1996, 1, 12);
Console.WriteLine("I was borth on {0}", birth);
Console.WriteLine("The day was {0}", birth.DayOfWeek);
birth = birth.AddMonths(9);
birth=birth.AddDays(17);
Console.WriteLine("Nine months and seventeen days after me Red was born {0}",birth);
Console.WriteLine("The day was {0}", birth.DayOfWeek);
Console.ReadKey();
}
}
}
namespace Working_with_Dates
{
class Program
{
static void Main(string[] args)
{
DateTime birth = new DateTime(1996, 1, 12);
Console.WriteLine("I was borth on {0}", birth);
Console.WriteLine("The day was {0}", birth.DayOfWeek);
birth = birth.AddMonths(9);
birth=birth.AddDays(17);
Console.WriteLine("Nine months and seventeen days after me Red was born {0}",birth);
Console.WriteLine("The day was {0}", birth.DayOfWeek);
Console.ReadKey();
}
}
}
Comments
Post a Comment