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

Generating "Always On Top" NSWindow in macOS across all detected displays

Also: Using UIKit & Cocoa Frameworks using Objective-C In m acOS or OS X , written in either Objective-C or Swift  Langues, you m...