Friday, May 10, 2013

DateTime in C# return day of week

This simple function in C# returns what day of the week string wtih a simple DateTime variable pushed to it is.


   public string dayOfWeek(DateTime date)
        {
            return date.DayOfWeek.ToString();
        }

No comments:

Post a Comment