# Date & time

## date

```yaml
version: 1
columns:
  date:
    - input: "Transaction Date"
    - date: "%Y-%m-%d"
```

The argument to `date` is the format the date is expected to be in. Format is documented in [here](https://docs.rs/chrono/0.4.12/chrono/format/strftime/index.html#specifiers).

If the parsing fails, empty value is returned.

```yaml
version: 1
columns:
  date:
    - input: "Transaction Date"
    - date:
      - "%Y-%m-%d"
      - "%m/%d/%Y"
```

As shown above, you can specify multiple formats. System will try them one by one, until one of them fits. This helps to standardize datasets where date formats in one column may vary.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://altaisoft.gitbook.io/ysv/language/date-and-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
