# `NebulaGraphEx.Types.NebDate`
[🔗](https://github.com/VChain/nebula_graph_ex/blob/v0.1.10/lib/nebula_graph_ex/types/neb_date.ex#L1)

NebulaGraph date value.

Separate from Elixir's `Date` to avoid ambiguity — NebulaGraph dates do not
carry calendar or timezone metadata. Use `to_date/1` to convert to a standard
`%Date{}` when you need Elixir date arithmetic.

## Fields

* `:year` — calendar year (e.g. `2024`)
* `:month` — `1..12`
* `:day` — `1..31`

# `t`

```elixir
@type t() :: %NebulaGraphEx.Types.NebDate{day: 1..31, month: 1..12, year: integer()}
```

# `to_date`

```elixir
@spec to_date(t()) :: {:ok, Date.t()} | {:error, atom()}
```

Converts to a standard `%Date{}`. Returns `{:error, reason}` on invalid values.

# `to_date!`

```elixir
@spec to_date!(t()) :: Date.t()
```

Converts to a standard `%Date{}`, raising on invalid values.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
