Click or drag to resize
DateTimeNow Property
Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static DateTime Now { get; }

Return Value

Type: DateTime
An object whose value is the current local date and time.
See Also