System Namespace DateTime Structure
Returns a DateTime that is the current local date and time on this computer.
[ VB ]
<Serializable>
Public Shared ReadOnly Property Now As DateTime
[ C# ]
[ Serializable ]
public static DateTime Now { get; }
[ C++ ]
[ Serializable ]
public: __property static DateTime get_Now ( );
[ JScript ]
public Serializable
static function get Now ( ) : DateTime;
A DateTime whose value is the current date and time.
The resolution of this property depends on the system timer.
System |
Approximate Resolution |
Windows NT 3.5 and later |
10 milliseconds |
Windows NT 3.1 |
16 milliseconds |
Windows 98 |
55 milliseconds |
DateTime Members