# Date Range Not Saving in Database

**URL:** <https://forum.bubble.io/t/date-range-not-saving-in-database/67985>\
**Category:** Bugs\
**Created:** [September 26, 2019, 10:45pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985 "2019-09-26T22:45:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 26, 2019, 10:45pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/1 "2019-09-26T22:45:05Z")

</div>

I’m having an interesting issue and I’m hoping it’s user error. I can save a date range into a state but the date range will no longer save to my database.

Also, all of my date range entries in my database show as ["",""]. I’ve tested multiple apps.

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [September 26, 2019, 11:02pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/2 "2019-09-26T23:02:28Z")

</div>

@garet.send Is the Field Type in your database field set as a date range?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/1/31c5661d0670322a1aac1b46c9041f39e09f14a6.png)

---

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 26, 2019, 11:04pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/3 "2019-09-26T23:04:27Z")

</div>

@lantzgould yes it is. It’s worked for the last 3 months when I set it up. I just noticed it was not working anymore. I created a new app and I am getting the same issue with number ranges, as well. Is the date range working for you fine?

---

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 26, 2019, 11:06pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/4 "2019-09-26T23:06:16Z")

</div>

@lantzgould here is the set up:

![image](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1f64d9cb3bafaf85c2513797dd11da675b613571.png)

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [September 26, 2019, 11:23pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/5 "2019-09-26T23:23:15Z")

</div>

@garet.send Yeah I’m getting the same result… I’m able to create a range but am getting the same when saving to the db.

![image](https://us1.discourse-cdn.com/bubble/original/3X/5/9/59fa15360af9ad2da486eb12bd3e5734a98f708f.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/e/6ea4d1186e0dfbc67c5206d7b711b43fde933b8f.png)

🤔

I’d recommend having two date fields in the db then producing a range when viewing.

Edit: I’m seeing other posts mentions of the calendar range producing the same thing. Maybe a bug.

---

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 26, 2019, 11:32pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/6 "2019-09-26T23:32:07Z")

</div>

Unfortunately, that would not work. My booking system relies on date ranges.

@emmanuel the date range function is broken ☹

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [September 26, 2019, 11:35pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/7 "2019-09-26T23:35:06Z")

</div>

Change the topic to Bug. Bubble team usually watches that one. 🙂

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 27, 2019, 3:46am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/8 "2019-09-27T03:46:36Z")

</div>

People, people, people… file a freaking bug report: [https://bubble.io/bug\_report](https://bubble.io/bug_report)

This is a pretty serious problem. I’m reporting my own findings, but if this affects you, file a report.

---

<div class="post-metadata">

**Author:** ![joelmhampton](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@joelmhampton](https://forum.bubble.io/u/joelmhampton)\
**Post date:** [September 27, 2019, 4:23am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/9 "2019-09-27T04:23:12Z")

</div>

Same issue with a range slider auto-bound to a numeric range field. Bug report filed.

---

<div class="post-metadata">

**Author:** ![jjj230](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@jjj230](https://forum.bubble.io/u/jjj230)\
**Post date:** [September 27, 2019, 4:31am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/10 "2019-09-27T04:31:24Z")

</div>

Yeah date range data isn’t even being displayed on previously created items with date ranges

---

<div class="post-metadata">

**Author:** ![seanhoots](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/seanhoots/32/12224_2.png) [@seanhoots](https://forum.bubble.io/u/seanhoots)\
**Post date:** [September 27, 2019, 4:32am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/11 "2019-09-27T04:32:47Z")

</div>

@emmanuel, @josh Please can you look into this. Date range has stopped working and its broken a lot of my client’s app.  
I’m guessing there has already been some bug reports filed on this.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 27, 2019, 5:05am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/12 "2019-09-27T05:05:24Z")

</div>

Filed as Bubble bug report #7629 (with prejudice). You can clearly see the problem here:

> **[Bubble - Visual Programming](https://tacomaster.bubbleapps.io/version-test/cg-test-august?debug_mode=true)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

Use the CG Pro element to pick a range. Now click “store that range in the db”. Note how the newly constructed range is [null, null] (as shown in the text element and in the RG).

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 27, 2019, 5:32am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/13 "2019-09-27T05:32:36Z")

</div>

Worth noting: It’s RETRIEVAL of date ranges that is verifiably broken. The repeating group on the page I link to contains (or, perhaps, DID contain) valid date ranges. However, a query (“Do a search for…”) as well as the App Data tab show them as [null, null]. App Data screencap:

 ![date-ranges-broken-app-data](https://us1.discourse-cdn.com/bubble/original/3X/1/a/1a35a839215ddba630ed0f7ccc4a41ef4f1c874c.png)

The ranges created in April and on Sept 19 are completely valid, but their values are not returning properly.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 27, 2019, 5:33am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/14 "2019-09-27T05:33:55Z")

</div>

Correct. See my posts below.

---

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 27, 2019, 5:38am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/15 "2019-09-27T05:38:34Z")

</div>

@keith thanks for the update. I filed a bug report about 7 hours ago and emailed Neema, as well. No response yet. Very frustrating.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [September 27, 2019, 5:49am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/16 "2019-09-27T05:49:47Z")

</div>

Well, the team is based in NY, so Eastern Time.

I’m sure it’ll get rectified fairly quickly, but it’s a bit baffling how this could happen. That it did happen indicates that Bubble has no automated tests configured around “higher order” Bubble data types. It’s not a minor issue – they broke the language, not just some random user-created API to the platform. It shouldn’t be possible to push an update that breaks the language.

(But in a way this is no surprise: Date ranges are red-headed stepchldren. You’ll note that there’s no way for [for example] the API Connector to return a higher-order “data type” like date ranges. It only supports pure JavaScript data types and core JavaScript API objects [e.g., dates, which are not a data type in JS, but might as well be]. Date Range objects are, at their core, a 2-element array of JavaScript date objects [date\_1, date\_2].)

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [September 27, 2019, 9:14am UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/17 "2019-09-27T09:14:27Z")

</div>

Still 12 hours later and there is no word or fix for what can be such a critical component to peoples apps 😑

![image](https://us1.discourse-cdn.com/bubble/original/3X/4/a/4a0ce6f6cb0cca157a96125eb71413fc25f64269.png)

@eve

---

<div class="post-metadata">

**Author:** ![garet.send](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garet.send/32/40266_2.png) [@garet.send](https://forum.bubble.io/u/garet.send)\
**Post date:** [September 27, 2019, 1:22pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/18 "2019-09-27T13:22:08Z")

</div>

@luke2 It’s very unfortunate. It’s a little frightening knowing this can happen.

---

<div class="post-metadata">

**Author:** ![luke2](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/luke2/32/256674_2.png) [@luke2](https://forum.bubble.io/u/luke2)\
**Post date:** [September 27, 2019, 2:02pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/19 "2019-09-27T14:02:52Z")

</div>

Yeah I’ll be honest, its a little worrying something like this can slip through the cracks. I just hope this gets addressed promptly and future precautions are setup to avoid this kind of disruptions.

---

<div class="post-metadata">

**Author:** ![allenyang](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/allenyang/32/209425_2.png) [@allenyang](https://forum.bubble.io/u/allenyang)\
**Post date:** [September 27, 2019, 2:41pm UTC](https://forum.bubble.io/t/date-range-not-saving-in-database/67985/20 "2019-09-27T14:41:01Z")

</div>

Hi all,

Thanks for flagging this; we are looking into it now! Agreed this is a very urgent one for us to investigate further.

Best,  
Allen

[Next page](https://forum.bubble.io/t/date-range-not-saving-in-database/67985.md?page=2)
