ConvertTimeToUtc()

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

Converts time to UTC-time.

static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time, const TimeZoneInfoPtr &source_time_zone)

Arguments

ParameterTypeDescription
date_timeDateTimeDate and time to convert.
source_time_zoneconst TimeZoneInfoPtr&Source time zone.

Return Value

Converted date and time.

TimeZoneInfo::ConvertTimeToUtc(DateTime) method

Converts time to UTC-time.

static DateTime System::TimeZoneInfo::ConvertTimeToUtc(DateTime date_time)

Arguments

ParameterTypeDescription
date_timeDateTimeDate and time to convert.

Return Value

Converted date and time.

See Also