Hi,

I am using tab2xl command in Stata 15 and would want to save the excel file using today's date. Below is the code am using

Code:
gl date = c(current_date)
sysuse auto, clear 
tab2xl foreign using "Output_$date", row(1) col(1)
Please let me know a possible work around on this.]

Thanks in advance!

Stephen.