# `Ash.Type.DateTime`
[🔗](https://github.com/ash-project/ash/blob/v3.23.1/lib/ash/type/datetime.ex#L5)

Represents a datetime, with configurable precision and timezone.

A builtin type that can be referenced via `:datetime`

### Constraints

* `:precision` - Valid values are :microsecond, :second The default value is `:second`.

* `:cast_dates_as` - Valid values are :start_of_day, :error The default value is `:start_of_day`.

* `:timezone` - Valid values are :utc The default value is `:utc`.

# `handle_change?`

# `prepare_change?`

---

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