Dear Stata users,
I have 15 different spreadsheets that I would like to import in stata using a loop.
I've constructed a loop in a way to import all spreadsheets at once. However, I noted that dates are imported as string and, particularly, these dates are in different format: DMY (eg 31/8/2012), MDY (eg 3/22/2001) and string (eg 25feb2014).
Is there a way to import all dates in the format DMY by inserting the some codes in the loop?
Thank you in advance for your help.
Regards,
F
I have 15 different spreadsheets that I would like to import in stata using a loop.
I've constructed a loop in a way to import all spreadsheets at once. However, I noted that dates are imported as string and, particularly, these dates are in different format: DMY (eg 31/8/2012), MDY (eg 3/22/2001) and string (eg 25feb2014).
Is there a way to import all dates in the format DMY by inserting the some codes in the loop?
Thank you in advance for your help.
Regards,
F
Comment