# Date / DateTime not defined

**URL:** https://discourse.julialang.org/t/date-datetime-not-defined/23516
**Category:** General Usage
**Created:** [April 25, 2019, 3:52pm UTC](https://discourse.julialang.org/t/date-datetime-not-defined/23516 "2019-04-25T15:52:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ilias](https://avatars.discourse-cdn.com/v4/letter/i/3bc359/32.png) [@ilias](https://discourse.julialang.org/u/ilias)
#### Post date: [April 25, 2019, 3:52pm UTC](https://discourse.julialang.org/t/date-datetime-not-defined/23516/1 "2019-04-25T15:52:03Z")

</div>

I got the following error when running:

```julia
julia> t = Date(2014, 1, 31)
ERROR: UndefVarError: Date not defined
Stacktrace:
 [1] top-level scope at none:0

```

Julia version 1.1.0

Is there any possible explanation for this? I didn’t find any similar case.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [April 25, 2019, 3:52pm UTC](https://discourse.julialang.org/t/date-datetime-not-defined/23516/2 "2019-04-25T15:52:27Z")

</div>

`using Dates`

---

<div class="post-metadata">

### Author: ![ilias](https://avatars.discourse-cdn.com/v4/letter/i/3bc359/32.png) [@ilias](https://discourse.julialang.org/u/ilias)
#### Post date: [April 25, 2019, 3:54pm UTC](https://discourse.julialang.org/t/date-datetime-not-defined/23516/3 "2019-04-25T15:54:05Z")

</div>

> [@fredrikekre](#):
>
> using Dates

Thanks. I thought it was needed only for the older version of Julia
