C#

C#

Get Yesterday’s Date Using C#

This article will teach you how to get yesterday’s date using C#. Many developers want to get yesterday’s date for too many reasons. It’s an easy and simple solution using the AddDays function. Passing (-1) to the AddDays function will return today’s date minus one day, which is yesterday’s date! How to get yesterday’s date

C#

C# Program to Shutdown and Restart a Computer

In some circumstances, you may need to allow your program to restart or shut down a computer that uses a Windows Operating System. This article will teach you how to shut down and restart a computer using C#. Restart and shut down a computer using C# To begin with, you will need to add the