System::Globalization::GregorianCalendar::ToDateTime method

GregorianCalendar::ToDateTime(int, int, int, int, int, int, int) const method

Constructs DateTime object from components.

virtual DateTime System::Globalization::Calendar::ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond) const
ParameterTypeDescription
yearintYear.
monthintMonth.
dayintDay.
hourintHour.
minuteintMinute.
secondintSecond.
millisecondintMillisecond.

ReturnValue

DateTime object that has specified components.

See Also

GregorianCalendar::ToDateTime(int, int, int, int, int, int, int, int) const method

Constructs DateTime object from components.

DateTime System::Globalization::GregorianCalendar::ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era) const override
ParameterTypeDescription
yearintYear.
monthintMonth.
dayintDay.
hourintHour.
minuteintMinute.
secondintSecond.
millisecondintMillisecond.
eraintEra.

ReturnValue

DateTime object that has specified components.

See Also