Tag Archives: find day of week

Take actions depending on the day of the week in C#

When the program starts, it uses the following code to display a different message in two different ways for each day of the week. // Display a message that depends on the day of the week. private void Form1_Load(object sender, … Continue reading

Posted in variables | Tagged , , , , , , , | Leave a comment

Find the Friday following a given date in C#

This example shows how you can find the Friday following a particular date. You can use a similar method to find other days of the week following a specific date. (Note that I have updated this example from its original … Continue reading

Posted in variables | Tagged , , , , , , , , , , , | 2 Comments