# Integer value of difference between two dates

**URL:** https://discourse.julialang.org/t/integer-value-of-difference-between-two-dates/82249
**Category:** New to Julia
**Created:** [June 4, 2022, 8:52pm UTC](https://discourse.julialang.org/t/integer-value-of-difference-between-two-dates/82249 "2022-06-04T20:52:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nash/32/14482_2.png) [@Nash](https://discourse.julialang.org/u/Nash)
#### Post date: [June 4, 2022, 8:52pm UTC](https://discourse.julialang.org/t/integer-value-of-difference-between-two-dates/82249/1 "2022-06-04T20:52:42Z")

</div>

When subtracting two dates in Julia, the result is something like “293 days”. How can extract the integer part and ignore the “days” part?

---

<div class="post-metadata">

### Author: ![vtomar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vtomar/32/18304_2.png) [@vtomar](https://discourse.julialang.org/u/vtomar)
#### Post date: [June 4, 2022, 9:00pm UTC](https://discourse.julialang.org/t/integer-value-of-difference-between-two-dates/82249/2 "2022-06-04T21:00:03Z")

</div>

I think there is a Dates.value(daysVariable)
