How to map dynamic variables

I need to pause an output variable from a module to input to another module, The problem is that each date I run the module the variable name changes, the name of the variable is always a date like “2024-05-10” How can I solve this?

Ouput module

Input Module:

image

image

Thanks