I have an app that lists cases. I am able to succesfuly filter by dates (start and end) which are saved on the pages custom states. I am trying to send those values to another page to filter a similar list - but it doesnt work. Any tips would be helpfull
With URL parameters – send your start/end values as UNIX timestamps rather than Bubble Date objects. For example, in your “Go to page my_list” action set:
Key: start_date Value: main’s Date Start extract Unix Timestamp
Key: end_date Value: main’s Date End extract Unix Timestamp
What’s a UNIX timestamp?
It’s simply the number of seconds (or milliseconds) that have elapsed since 00:00 UTC on January 1, 1970. By converting your dates to a plain number, you avoid any serialization issues when passing them in the URL.
On the “my_list” page you’ll now receive two numeric parameters. Unfortunately, Bubble doesn’t include a built-in workflow action to turn a UNIX timestamp back into a Date object. To convert them you’ll need a free “Unix → Date” plugin (search the Plugin library for “Unix to Date” or “Timestamp Converter”). Install that, then in your page’s “Do when page is loaded” (or in any repeating group filter), convert the parameter value back to a Bubble date and you can filter your list exactly as before.
Thanks for the quick response. I get the first part - but I don’t know how to convert the value back to Bubble date in my list - Repeating Group Filter