Tag Archives: day of the 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

List birthdays in C#

Adding values to dates is kind of tricky. For example, you cannot simply add 365 days to a date to get the same date next year because not all years have 365 days. When you enter a date and click … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , | Leave a comment