ConvertTimeBySystemTimeZoneId()

TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime, const String&) method

Convert time to the time in a specified time zone.

static DateTime System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime date_time, const String &destination_time_zone_id)

Arguments

ParameterTypeDescription
date_timeDateTimeDate and time to convert.
destination_time_zone_idconst String&Identifier of the destination time zone.

Return Value

Converted date and time.

TimeZoneInfo::ConvertTimeBySystemTimeZoneId(const DateTimeOffset&, const String&) method

Convert time to the time in a specified time zone.

static DateTimeOffset System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(const DateTimeOffset &date_time_offset, const String &destination_time_zone_id)

Arguments

ParameterTypeDescription
date_time_offsetconst DateTimeOffset&Date and time to convert.
destination_time_zone_idconst String&Identifier of the destination time zone.

Return Value

Converted date and time.

TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime, const String&, const String&) method

Convert time to the time in a specified time zone.

static DateTime System::TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime date_time, const String &source_time_zone_id, const String &destination_time_zone_id)

Arguments

ParameterTypeDescription
date_timeDateTimeDate and time to convert.
source_time_zone_idconst String&Identifier of the source time zone.
destination_time_zone_idconst String&Identifier of the destination time zone.

Return Value

Converted date and time.

See Also