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

# cast_string_* session settings

> ClickHouse session settings in the cast_string_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## cast\_string\_to\_date\_time\_mode

Type

DateTimeInputFormat

Default

best\_effort

Allows choosing a parser of the text representation of date and time during cast from String.

Possible values:

* `'best_effort'` — Enables extended parsing.

  ClickHouse can parse the basic `YYYY-MM-DD HH:MM:SS` format and all [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time formats. For example, `'2018-06-08T01:02:03.000Z'`.

* `'best_effort_us'` — Similar to `best_effort` (see the difference in [parseDateTimeBestEffortUS](https://clickhouse.com/docs/reference/functions/regular-functions/type-conversion-functions.md#parseDateTimeBestEffortUS)

* `'basic'` — Use basic parser.

  ClickHouse can parse only the basic `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DD` format. For example, `2019-08-20 10:18:56` or `2019-08-20`.

See also:

* [DateTime data type.](https://clickhouse.com/docs/reference/data-types/datetime.md)
* [Functions for working with dates and times.](https://clickhouse.com/docs/reference/functions/regular-functions/date-time-functions.md)

## cast\_string\_to\_dynamic\_use\_inference

Type

Bool

Default

0

Use types inference during String to Dynamic conversion

## cast\_string\_to\_variant\_use\_inference

Type

Bool

Default

1

Use types inference during String to Variant conversion.
