

Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.

# Funciones de conversión de tipos
<a name="sql-functions-type-conv"></a>

 Las funciones de conversión de tipos se utilizan para cambiar el tipo de datos de un valor a otro. Son esenciales para garantizar la compatibilidad de los datos y realizar operaciones que requieren datos en un formato específico. 


|  **Función**  |  **Signature**  |  **Descripción**  | 
| --- | --- | --- | 
| `TO_DATE` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIMESTAMP` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIME` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `CAST` | CAST (<expression>AS<data type>) | Convierte una entidad o expresión que se evalúa en un único valor de un tipo a otro.<br />Los tipos de datos admitidos son:[See the AWS documentation website for more details](http://docs.aws.amazon.com/es_es/iot-sitewise/latest/userguide/sql-functions-type-conv.html) | 

**Example de una consulta SQL mediante las funciones enumeradas:**  

```
SELECT TO_TIMESTAMP (100) AS timestamp_value,
  TO_DATE(r.event_timestamp) AS date_value,
  TO_TIME(r.event_timestamp) AS time_value
FROM raw_time_series AS r
```