Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();
            string day = client.GetDay(DateTime.Now);

            Console.WriteLine(day);
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            Console.OutputEncoding = System.Text.Encoding.UTF8;
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();

            var today = DateTime.Now;
            for (int i = 0; i < 7; i++)
            {
                var currentDay = today.AddDays(-i);
                var dayName = client.GetDay(currentDay);
                Console.WriteLine(dayName);
            }
        }
Ejemplo n.º 3
0
        public static void Main()
        {
            Console.OutputEncoding = System.Text.Encoding.UTF8;
            DayOfWeekServiceClient client = new DayOfWeekServiceClient();

            var today = DateTime.Now;

            for (int i = 0; i < 7; i++)
            {
                var currentDay = today.AddDays(-i);
                var dayName    = client.GetDay(currentDay);
                Console.WriteLine(dayName);
            }
        }
Ejemplo n.º 4
0
 static void Main(string[] args)
 {
     DayOfWeekServiceClient client = new DayOfWeekServiceClient();
     string day = client.GetDay(DateTime.Now);
     Console.WriteLine(day);
 }