Date range to and from url param

Hi,
I’m trying to figure out how to pass a date range into a url parameter and read that date range back from a url parameter. Bubble docs say this is possible:


That screenshot is from here (you have to scroll down about 2/3 of the way):

I have tried all three of these ways below

As you can see, obviously bubble doesn’t allow for a range to be passed in as a parameter but the docs imply that you can.

And this is how I’m evaluating the url params:

Here is how the url params look in the url:
image
No surprise that dr2 has no value but dr1 formats as the bubble docs above say it will and dr3 appears as anticipated.

Here is how the text element I screenshotted above evaluates in preview:


The only one that actually evaluates to a set of dates are the unix dates but they evaluate to epoch time (Jan 1, 1970 12:00 am UTC. I am 5 hours behind UTC which is why it shows up as 5 hours before epoch time).

Any thoughts here? Any help would be much appreciated.

You need to have to parameters (let’s say start and end) that you will set as “date” when using Get data from URL
After, you wll be able to use is as date range using Get "start"from url <-range-> (dynamic operator) Get “end” from url

1 Like

To pass the date range to param, you use start = Date range:start and end=Date range:end operators

The main issue from what I see is that you are trying to pass everything into one parameter. If you read carefully the manual, you will see that it say: “need to be passed in two separate values”

1 Like

Thanks @Jici
That is what I updated my functionality to. Bubble docs definitely seem to be wrong here (or at bare minimum, misleading)

1 Like