Q:

Write a C# Sharp program to get the day of the week for a specified date

0

Write a C# Sharp program to get the day of the week for a specified date. 

Expected Output :

The day of the week for 7/11/2016 is Monday

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

using System;

public  class Example3 
{
    public static void Main() 
    {
// Assume the current system  is en-US.
    DateTime dt = new DateTime(2016, 7, 11);
    Console.WriteLine("The day of the week for {0:d} is {1}.", dt, dt.DayOfWeek);
    }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now