Feeds:
Posts
Comments

Posts Tagged ‘currentSystemTime’

In order to retrieve the current system time, we can use the static property “Now” of the ” DateTime” class. For example the following two lines of code
DateTime currentSystemTime = DateTime.Now;

Console.WriteLine(currentSystemTime);

print out something like this:

4/7/2008 4:05:35 PM

Read Full Post »