> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: SwitchTimeZone

> Use the SwitchTimezone expression function in Integrate.io ETL to convert datetime values between time zones inside your pipeline transformations.

## Description

Changes a datetime value's time zone from the value's original time zone to the time zone given in tz\_string and returns the value.

## Syntax

`SwitchTimeZone(datetime_expression, tz_value)`

## Arguments

*datetime\_expression* - datetime expression in original time zone.

*tz\_value* - string representing the target timezone. See [http://joda-time.sourceforge.net/timezones.html](http://joda-time.sourceforge.net/timezones.html) for available time zone values.

## Examples

`SwitchTimeZone(ToDate('2014-11-01T23:30:00+02:00'),'America/Chicago')` returns `2014-11-01T15:30:00-06:00`

## Return value datatype

Datetime

## Impact of null value

If datetime\_value is null, returns null. If tz\_value is null or invalid, an exception is raised.
