Rather than passing the parameter to the page, you can change the data source for the Data View to another method. If you need to do some sort of calculation, then a microflow or nanoflow data source is probably what you need. This would need to return a single object that the Data View can use to render the relevant data, in your case an OpeningHours object.
https://docs.mendix.com/refguide/data-sources/
I hope this helps!