Print date range

I have a print page in Bubble that receives a start_date and end_date as URL parameters. I have a repeating group on the print page with a data source set to Search for JournalEntrys with two constraints: Created Date is after start_date from URL and Created Date is before end_date from URL. The repeating group is showing results but they are not filtering correctly by the date range. The parameters are being passed correctly from the previous page. What am I missing to make the date range filter work properly?

Hey @dsey3825 :waving_hand:

Can you give us a screenshot of your datasource and show us how you are pulling in the url data? That would be helpful. :blush: Hope we can assist.

The problem might be that when you pass something like a date range through URL parameters, bubble might not treat that as a date anymore but instead type text. A screenshot of your setup would help.

However, what I would suggest doing is passing the whole datatype of what you are printing through the URL. What this can do is you can set the pages type to your data type and use current pages “whatever your datatype is”. This way you can just pull the start and end dates from the page itself as well as other data rather than just the dates which might not be scalable.

Passing a date through the URL isn’t that trivial. Ideally, you would pass the parameter as a data type instead, as @bassim3qazi said.

The only issue is if this URL is being called from an external source, outside of Bubble (in that case, this option wouldn’t really be viable).

But like @J805 mentioned, share more details about this workflow with us, maybe through a video or some screenshots.

There’s no issue passing date in url parameters, but when you use Get data from url, set the type as date! Also, I recommend to pass the date as UTC in the url.