# Creating range date type in backend workflow

**URL:** <https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482>\
**Category:** Questions\
**Created:** [March 4, 2021, 11:26am UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482 "2021-03-04T11:26:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![petr](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petr/32/109174_2.png) [@petr](https://forum.bubble.io/u/petr)\
**Post date:** [March 4, 2021, 11:26am UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/1 "2021-03-04T11:26:44Z")

</div>

Dear Bubblers,

please I need help with creating range type to database in backend workflow (recurring).

To the item “Period” (range type) I need to insert “last week” range.

For example you can see on the picture what I mean From and To.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/9/9997f70f08ae987dd5d3c9e2f87b7c1ac5112d82.png)

But when I want to create the range type from Current date/time, I can’t to see functions for rounded down to and + seconds in second parameter of the range. I see only :start , :end, … you can see on the screenshot:

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/7/070e294179c269767d0e333f3e1d03ec07c4f405.png)

Please, any idea?

Thank you so much

PM

---

<div class="post-metadata">

**Author:** ![petr](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petr/32/109174_2.png) [@petr](https://forum.bubble.io/u/petr)\
**Post date:** [March 5, 2021, 9:27am UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/2 "2021-03-05T09:27:40Z")

</div>

Please, any idea? Thank you so much.

PM

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 5, 2021, 11:19am UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/3 "2021-03-05T11:19:19Z")

</div>

> [@petr](#):
>
> I see only :start , :end, … you can see on the screenshot:

Yeah, this in my opinion is a major UX design flaw by Bubble and I’ve submitted an idea to the idea board to have them change this. You might also do the same to hopefully have more voices to push the needle on the issue.

In the end you can add parameters to you backend workflow that are the from and to and set those when triggering the backend workflow and then in your Period you reference the from and to parameters to create the range.

---

<div class="post-metadata">

**Author:** ![petr](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petr/32/109174_2.png) [@petr](https://forum.bubble.io/u/petr)\
**Post date:** [March 5, 2021, 1:01pm UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/4 "2021-03-05T13:01:39Z")

</div>

Thank you @boston85719 Can you share me the link to the board, where you shared this idea? Thank you so much  
PM

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [March 5, 2021, 3:07pm UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/5 "2021-03-05T15:07:25Z")

</div>

> **[The best way to build web apps without code | Bubble](https://bubble.io/)**
>
> Bubble introduces a new way to build software. It’s a no-code tool that lets you build SaaS platforms, marketplaces and CRMs without code. Bubble hosts all web apps on its cloud platform.

---

<div class="post-metadata">

**Author:** ![gf\_wolfer](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gf_wolfer/32/262456_2.png) [@gf\_wolfer](https://forum.bubble.io/u/gf_wolfer)\
**Post date:** [March 5, 2021, 5:08pm UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/6 "2021-03-05T17:08:35Z")

</div>

I feel your pain here, Date Ranges and Number Ranges do have some limitations that you need to work around. In your specific case, are you setting the From and To fields in the same Action as the Period range?

If you are, I would split it up and first set the To and From dates in one Action and then create a second Action immediately after to make changes to the same piece of Data where you can set the Period range with an expression like:  
`Period = This data's From <-range-> This data's To `

---

<div class="post-metadata">

**Author:** ![petr](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/petr/32/109174_2.png) [@petr](https://forum.bubble.io/u/petr)\
**Post date:** [March 6, 2021, 8:11am UTC](https://forum.bubble.io/t/creating-range-date-type-in-backend-workflow/139482/7 "2021-03-06T08:11:13Z")

</div>

Hi @boston85719 and @gf_wolfer thank you so much, I resolved it by creating parameters from, to of the endpoint.

parameters of the endpoint:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/4/542a42f37ff92e18e40e52b2d1c03bca64920bb1.png)

calling endpoint:  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/7/1/71332fc7d294871da3926c701a5fdf171397e0f9.png)

creating new thing (in endpoint):  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/c/dcd8fda13a3e8280bea84dd655b5bb05209fa01c.png)

thank you so much

Petr Majtán, [Innovatee.com](http://Innovatee.com)
