# TRY_TO_DATE() Function

### Description

Attempts to convert a string to a date, returns NULL if unsuccessful

### Syntax

```sql
TRY_TO_DATE(expression, format)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _expression_ | Column or expression to evaluate | String | Yes |
| _format_ | Format string for parsing or formatting | String | No |

### Example

```sql
SELECT
    TRY_TO_DATE('2026-01-15', 'YYYY-MM-DD')
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/try_to_date

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
