ToDateTime()

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

Arguments

ParameterTypeDescription
yearintYear.
monthintMonth.
dayintDay.
hourintHour.
minuteintMinute.
secondintSecond.
millisecondintMillisecond.
eraintEra.

Return Value

DateTime object that has specified components.

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

Arguments

ParameterTypeDescription
yearintYear.
monthintMonth.
dayintDay.
hourintHour.
minuteintMinute.
secondintSecond.
millisecondintMillisecond.

Return Value

DateTime object that has specified components.

GregorianCalendar::ToDateTime(int, 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, int era) const

Arguments

ParameterTypeDescription
yearintYear.
monthintMonth.
dayintDay.
hourintHour.
minuteintMinute.
secondintSecond.
millisecondintMillisecond.
eraintEra.

Return Value

DateTime object that has specified components.

See Also