[edit] C# DateTime.Today Property
The DateTime Now property simply returns the current date and will initailize the time part to 12:00:00 AM.
[edit] Syntax
DateTime variable = DateTime.Today;
[edit] Example
using System;
class Program
{
static void Main()
{
DateTime d1 = DateTime.Today;
Console.WriteLine(d1.ToString());
Console.Read();
}
}
Output:
4/4/2007 12:00:00 AM
<= DateTime Tutorial
|