# How calculate time between two date?

**URL:** https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941
**Category:** General Usage
**Tags:** question
**Created:** [June 23, 2020, 2:50pm UTC](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941 "2020-06-23T14:50:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![LancelacDulot](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@LancelacDulot](https://discourse.julialang.org/u/LancelacDulot)
#### Post date: [June 23, 2020, 2:50pm UTC](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941/1 "2020-06-23T14:50:07Z")

</div>

Hi all,

I search to have the duration between tow date create by now().  
I’m new julia’s user. I don’t know do this.  
Please help me!!

Thank you for your help. 🙂

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [June 23, 2020, 2:59pm UTC](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941/2 "2020-06-23T14:59:21Z")

</div>

Welcome to the discourse!

I can’t answer your question better then it’s done in the docs: [Dates · The Julia Language](https://docs.julialang.org/en/v1/stdlib/Dates/index.html#Durations/Comparisons-1)

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [June 23, 2020, 3:00pm UTC](https://discourse.julialang.org/t/how-calculate-time-between-two-date/41941/3 "2020-06-23T15:00:29Z")

</div>

Welcome to this fine community!

```julia
julia> using Dates

julia> realtime=Dates.now()
2020-06-23T16:59:17.906

julia> elapsed_realtime=Dates.now()-realtime
111 milliseconds

```

But reading the docs as @Skoffer adviced is always recommended!
