CorLib  

CorDateTimeStatic: Now

Returns a CorDateTime that represents the current time on the local machine.

[Visual Basic]
 Public Function Now ( ) As CorDateTime

Return Values

CorDateTime -  The CorDateTime object representing the current time on the local machine.

Remarks

This method uses GetLocalTime which has a resolution down to the milliseconds. If the milliseconds is not wanted, then either the Millisecond must be subtracted for the instance, or use CorDateTime.FromOADate(Now).

See Also

Class CorDateTimeStatic Overview | CorDateTimeStatic Members | MinValue (get) | Parse