Constructors: NewDate

NewDate

Creates a new CorDateTime object from a VB Date.



 Public Function NewDate(
	  ByVal Value As Date,
	  Optional ByVal Kind As DateTimeKind = UnspecifiedKind ) As CorDateTime

Parameters

Value
[ByVal] Date. The date.
Kind
[ByVal] Optional. DateTimeKind. Specifies whether the CorDateTime is a UTC, Local, or unspecified time type.  

Default: UnspecifiedKind

Return Values

CorDateTime -  A CorDateTime object.

Remarks

This is a short-hand method for calling CorDateTime.FromOADate(Value).

 Dim d As CorDateTime
 Set d = NewDate(#1/1/2001#)
 

See Also

Project CorLib Overview

Class Constructors Overview