> ## Documentation Index
> Fetch the complete documentation index at: https://helix-digitalocean.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# E501

# Invalid Date

## Example

This error occurs when you provide a date value that cannot be parsed or is in an invalid format.

In this example, the date value is invalid and cannot be parsed.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query addEvent() =>
      AddN<Event>({date: "2023-99-99"})
  ```

  ```rust schema.hx theme={null}
  N::Event {
      date: Date,
  }
  ```
</CodeGroup>

## Solution

Ensure the date value is in the correct format.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query addEvent() =>
      AddN<Event>({date: "2023-01-01"})
  ```
</CodeGroup>
