# Plots -- xlims with x axis given by dates?

**URL:** <https://discourse.julialang.org/t/plots-xlims-with-x-axis-given-by-dates/47926>\
**Category:** General Usage\
**Created:** [October 7, 2020, 12:20pm UTC](https://discourse.julialang.org/t/plots-xlims-with-x-axis-given-by-dates/47926 "2020-10-07T12:20:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [October 7, 2020, 12:22pm UTC](https://discourse.julialang.org/t/plots-xlims-with-x-axis-given-by-dates/47926/2 "2020-10-07T12:22:53Z")

</div>

Yes, just do `xlims = Dates.value.([min_date, max_date])`

---

_[View the full topic](https://discourse.julialang.org/t/plots-xlims-with-x-axis-given-by-dates/47926)._
