Constructors: NewcDateTime

NewcDateTime

Creates a new cDateTime object set to the specified date.



 Public Function NewcDateTime(
	  Optional ByVal Year As Long,
	  Optional ByVal Month As Long,
	  Optional ByVal Day As Long,
	  Optional ByVal Hour As Long,
	  Optional ByVal Minute As Long,
	  Optional ByVal Second As Long,
	  Optional ByVal Millisecond As Long,
	  Optional ByVal Calendar As Calendar,
	  Optional ByVal Kind As DateTimeKind = UnspecifiedKind ) As cDateTime

Parameters

Year
[ByVal] Optional. Long. The year of the date.
Month
[ByVal] Optional. Long. The month of the date.
Day
[ByVal] Optional. Long. The day of the date.
Hour
[ByVal] Optional. Long. The hour of the time portion of the date.
Minute
[ByVal] Optional. Long. The minute of the time portion of the date.
Second
[ByVal] Optional. Long. The second of the time portion of the date.
Millisecond
[ByVal] Optional. Long. The millisecond of the time portion of the date.
Calendar
[ByVal] Optional. Calendar. The calendar to use to create a cDateTime for a specific culture.
Kind
[ByVal] Optional. DateTimeKind. Specifies whether the cDateTime is a UTC, Local, or unspecified time type.  

Default: UnspecifiedKind

Return Values

cDateTime -  A new cDateTime object initialized to the specified date and time.

Remarks

See Also

Project VBCorLib Overview Class Constructors Overview Constructors Properties Constructors Methods NewBytes NewCharEnumerator