Constructors: NewDateTime

NewDateTime

Creates a new CorDateTime object set to the specified date.



 Public Function NewDateTime(
	  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 CorDateTime

Parameters

Year
[ByVal] Optional. Long. The year (1 through 9999 or the number of years in Calendar).
Month
[ByVal] Optional. Long. The month (1 through 12 or the number of months in Calendar).
Day
[ByVal] Optional. Long. The day (1 through the number of days in Month).
Hour
[ByVal] Optional. Long. The hours (0 through 23).
Minute
[ByVal] Optional. Long. The minutes (0 through 59).
Second
[ByVal] Optional. Long. The seconds (0 through 59).
Millisecond
[ByVal] Optional. Long. The millisecond (0 through 999).
Calendar
[ByVal] Optional. Calendar. The calendar to use to create a CorDateTime for a specific culture.
Kind
[ByVal] Optional. DateTimeKind. Specifies whether the CorDateTime is a UTC, Local, or unspecified time type.  

Default: UnspecifiedKind

Return Values

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

Remarks

The GregorianCalendar is used if Calendar is not specified.

See Also

Project CorLib Overview

Class Constructors Overview