System::TimeZoneInfo::ConvertTimeToUtc method

TimeZoneInfo::ConvertTimeToUtc(DateTime) method

Converts time to UTC-time.

static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time)
ParameterTypeDescription
date_timeDateTimeDate and time to convert.

ReturnValue

Converted date and time.

See Also

TimeZoneInfo::ConvertTimeToUtc(DateTime, const TimeZoneInfoPtr&) method

Converts time to UTC-time.

static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time, const TimeZoneInfoPtr &source_time_zone)
ParameterTypeDescription
date_timeDateTimeDate and time to convert.
source_time_zoneconst TimeZoneInfoPtr&Source time zone.

ReturnValue

Converted date and time.

See Also