# DatePickerRange choosing same date

**URL:** <https://community.plotly.com/t/datepickerrange-choosing-same-date/5524>\
**Category:** Dash Python\
**Created:** [August 23, 2017, 9:10pm UTC](https://community.plotly.com/t/datepickerrange-choosing-same-date/5524 "2017-08-23T21:10:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elaine.wu](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@elaine.wu](https://community.plotly.com/u/elaine.wu)\
**Post date:** [August 23, 2017, 9:10pm UTC](https://community.plotly.com/t/datepickerrange-choosing-same-date/5524/1 "2017-08-23T21:10:05Z")

</div>

Hi,

I’m currently building a web application in Dash and wanted the user to be able to choose dates using the DatePickerRange from the dash core components. However, I want it to be flexible so that the user could use a span of multiple days, or choose one day for each of them. I know that I could have an option to ask the user whether or not they want to select multiple days or just one day and use the DatePickerRange/DatePickerSingle, but I was wondering if there was a way to choose the same day for both when using the DatePickerRange, or if there’s a prop I could use to enable me to choose the same date.

Thanks!

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [August 23, 2017, 11:59pm UTC](https://community.plotly.com/t/datepickerrange-choosing-same-date/5524/2 "2017-08-23T23:59:41Z")

</div>

> [@elaine.wu](#):
>
> ondering if there was a way to choose the same day for both when using the DatePickerRange, or if there’s a prop I could use to enable me to choose the same date

Could you try setting `minimum_nights=0`? That is, `DatePickerRange(..., minimum_nights=0)` ? This property specifies the minimum number of nights that must be selected between the `start_date` and the `end_date`
