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


[Convert](../../convert/) time to the time in a specified time zone.

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


| Parameter | Type | Description |
| --- | --- | --- |
| date_time | DateTime | Date and time to convert. |
| destination_time_zone_id | const String\& | Identifier of the destination time zone. |

### ReturnValue

Converted date and time.

## See Also

* Class [DateTime](../../datetime/)
* Class [String](../../string/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## TimeZoneInfo::ConvertTimeBySystemTimeZoneId(const DateTimeOffset\&, const String\&) method


[Convert](../../convert/) time to the time in a specified time zone.

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


| Parameter | Type | Description |
| --- | --- | --- |
| date_time_offset | const DateTimeOffset\& | Date and time to convert. |
| destination_time_zone_id | const String\& | Identifier of the destination time zone. |

### ReturnValue

Converted date and time.

## See Also

* Class [DateTimeOffset](../../datetimeoffset/)
* Class [String](../../string/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
## TimeZoneInfo::ConvertTimeBySystemTimeZoneId(DateTime, const String\&, const String\&) method


[Convert](../../convert/) time to the time in a specified time zone.

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


| Parameter | Type | Description |
| --- | --- | --- |
| date_time | DateTime | Date and time to convert. |
| source_time_zone_id | const String\& | Identifier of the source time zone. |
| destination_time_zone_id | const String\& | Identifier of the destination time zone. |

### ReturnValue

Converted date and time.

## See Also

* Class [DateTime](../../datetime/)
* Class [String](../../string/)
* Class [TimeZoneInfo](../)
* Namespace [System](../../)
* Library [Aspose.PUB for C++](../../../)
