get the generated folder with the results in a variable

How can I get in a variable the generated folder (with timestamp) for the running simulation ?

Thanks