[edit] C# DateTime.Now Property
The DateTime Now property simply returns the current date and time on the local computer that the .NET Framework is running on.
[edit] Syntax
DateTime Variable = DateTime.Now;
[edit] Example
using System;
class Program
{
static void Main()
{
DateTime d1 = DateTime.Now;
Console.WriteLine(d1.ToString());
Console.Read();
}
}
Output:
4/4/2007 12:56:03 AM
<= DateTime Tutorial
|