Hi All!

I'm trying to create a local string reflecting the current date in the format, "YYYY-MM-DD" which I can then concatenate into a file name as such:

Code:
use "my_file.YYYY-MM-DD.dta"
I've created a Stata file from a Python code which features the current date in its file name, and I'd like to be able to have Stata automatically use the file so I can run the program from Python without needing to adjust the file name each day.

Thanks in advance for your help.

Adam