> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-6/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-6/data-center/data-preparation/data-preparation-workspace/transforms/conversions.md).

# Conversions

## **Convert Duration**

The transform converts any duration (day, hour, minute, seconds, or milliseconds) to any specified duration.

To perform the transform, select the column that has the duration to be converted and specify the duration type.

{% hint style="success" %}
*Check out the given illustration on how to apply Convert Duration.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FMBlaq9xJKzJI9jNZ9kkj%2FConvert%20Duration.mp4?alt=media&token=048d98ca-3f15-4112-80e4-4db7ef92bc03>" %}

* Navigate to the ***Data Preparation*** workspace.
* Select a column from the data set with the time duration.
* Open the ***Transforms*** tab.
* Select the ***Convert Duration*** transform from the ***Conversion*** category.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FKcmH8q1MnR48yDPDh8gU%2Fimage.png?alt=media&amp;token=565f0844-8d8a-416d-8b10-fb634cd7f7ee" alt=""><figcaption></figcaption></figure>
* The ***Convert Duration*** dialog box appears.
* Provide the following information to apply the convert duration transformation.
  * Enable the **Create New Column** option to create a new column.
  * **From:** The type of source interval
  * **To:** The type of destination interval
  * **Precision:** The decimal points to be retained.
* Click the ***Submit*** option.&#x20;

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FuGBI39fIjX4LlxpWXGP8%2Fimage.png?alt=media&amp;token=698f942f-1ab8-4170-9a6d-b172eb358edc" alt=""><figcaption></figcaption></figure>
* The selected column values transform to align with the chosen conversion duration. For instance, in this scenario, the selected column values undergo a conversion, transitioning from the unit of ***days*** to ***hours***.

  <figure><img src="https://2657181281-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKg5pfnNkTs1b1YNYX7rD%2Fuploads%2FSx6XOh9zhBYjCpuob31Z%2Fimage.png?alt=media&amp;token=691533f4-2427-4dd6-b238-fd1bc56f46d0" alt=""><figcaption><p>Result c<em><strong>olumn with the converted duration value</strong></em></p></figcaption></figure>
