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();
}
public string dayOfWeek(DateTime date)
{
return date.DayOfWeek.ToString();
}
No comments:
Post a Comment