NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Calendar.ToDateTime (Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Returns [RB40] the date and time converted to a DateTime value.

[Visual Basic]
Overloads Overridable Public Function ToDateTime( _
   ByVal year As Integer, _
   ByVal month As Integer, _
   ByVal day As Integer, _
   ByVal hour As Integer, _
   ByVal minute As Integer, _
   ByVal second As Integer, _
   ByVal millisecond As Integer _
) As DateTime
[C#]
public virtual DateTime ToDateTime(
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second,
   int millisecond
);
[C++]
public: virtual DateTime ToDateTime(
   int year,
   int month,
   int day,
   int hour,
   int minute,
   int second,
   int millisecond
);
[JScript]
public function ToDateTime(
   year : int,
   month : int,
   day : int,
   hour : int,
   minute : int,
   second : int,
   millisecond : int
) : DateTime;

Parameters

year
The year.
month
The month.
day
The day.
hour
The hour.
minute
The minute.
second
The second.
millisecond
The millisecond.

Return Value

The constructed DateTime instance for the specified time.

See Also

Calendar Class | Calendar Members | System.Globalization Namespace | Calendar.ToDateTime Overload List