# Field Type 'numerical range' and 'date interval'

**URL:** <https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51>\
**Category:** Uncategorized\
**Created:** [July 8, 2015, 1:33pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51 "2015-07-08T13:33:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lernwelten](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lernwelten](https://forum.bubble.io/u/lernwelten)\
**Post date:** [July 8, 2015, 1:33pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/1 "2015-07-08T13:33:59Z")

</div>

What kind of data is meant by ‘numerical range’ and ‘date interal’ ?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [July 8, 2015, 1:50pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/2 "2015-07-08T13:50:14Z")

</div>

Numerical range is only used if you’re using the Slider Input and set its type to range. That enables users to pick two numbers, and the these numbers are stored as a numerical range (like [1, 10]). You can then access the min and the max. It’s useful if you want your users to set a price range, or something like this.

Date interval is a way to quantify the difference between two dates. It/s the number of days/hours/minutes/etc between them. This is what gets returned when you do a minus between two dates.

---

<div class="post-metadata">

**Author:** ![JustinC](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JustinC](https://forum.bubble.io/u/JustinC)\
**Post date:** [June 22, 2016, 8:35pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/3 "2016-06-22T20:35:31Z")

</div>

How do we set a strict minimum?

For example, if someone is selling seats/tickets to a concert and only has 3 available, as they are purchased they are reduced in quantity until there are 0 available tickets left.

Right now I can keep purchasing and purchasing and the number keeps going into the negative…

---

<div class="post-metadata">

**Author:** ![jonaspalmqvist](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonaspalmqvist/32/7307_2.png) [@jonaspalmqvist](https://forum.bubble.io/u/jonaspalmqvist)\
**Post date:** [October 6, 2016, 2:05pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/4 "2016-10-06T14:05:22Z")

</div>

@JustinC how do you handle the display of and how to choose number of tickets on the frontend? Single purchase, dropdown, display stock and +/- signs etc.?

---

<div class="post-metadata">

**Author:** ![JustinC](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JustinC](https://forum.bubble.io/u/JustinC)\
**Post date:** [October 6, 2016, 2:35pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/5 "2016-10-06T14:35:33Z")

</div>

You could do a drop down selector. Or you could do a button that makes changes to a thing and ads or reduces Quantity under Product thing.

---

<div class="post-metadata">

**Author:** ![jonaspalmqvist](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonaspalmqvist/32/7307_2.png) [@jonaspalmqvist](https://forum.bubble.io/u/jonaspalmqvist)\
**Post date:** [October 7, 2016, 6:35am UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/6 "2016-10-07T06:35:28Z")

</div>

> [@JustinC](#):
>
> How do we set a strict minimum?
> 
> For example, if someone is selling seats/tickets to a concert and only has 3 available, as they are purchased they are reduced in quantity until there are 0 available tickets left.
> 
> Right now I can keep purchasing and purchasing and the number keeps going into the negative…

Was your post above from a real example? What setup did you in such case end up using that?

I’m trying to figure out the sleekest way to handle inventory of up to 50 (of something) per item. All items are owned by a user.

---

<div class="post-metadata">

**Author:** ![Rangduju](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rangduju/32/119696_2.png) [@Rangduju](https://forum.bubble.io/u/Rangduju)\
**Post date:** [September 1, 2021, 2:27pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/7 "2021-09-01T14:27:10Z")

</div>

Data interval = Duration.

---

<div class="post-metadata">

**Author:** ![danpagano82](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@danpagano82](https://forum.bubble.io/u/danpagano82)\
**Post date:** [March 6, 2023, 12:14pm UTC](https://forum.bubble.io/t/field-type-numerical-range-and-date-interval/51/8 "2023-03-06T12:14:15Z")

</div>

@emmanuel  
YOU ARE AN IDOL!!!
