I have a command that includes a large number of dates I'd like to use in recoding a date variable as a dummy variable. The dates in my syntax are in DMY format (01jan2011, for example). Despite my having changed the dates in my data to being displayed in this very format, Stata appears to be unable to read any command using dates not in SIF form. I have followed a host of tutorials, forum posts, etc. on SIF to HRF and HRF to SIF conversion for dates, but these seem to speak only to changing the way they're displayed in my data, whereas I'm looking instead for Stata to read the HRF dates I enter in syntax as SIF dates.
Is there a simple way to either a) get Stata to read my command with DMY format dates or b) convert my long list of DMY format dates to SIF dates (to use that as my syntax instead) without manually converting them one by one?
Is there a simple way to either a) get Stata to read my command with DMY format dates or b) convert my long list of DMY format dates to SIF dates (to use that as my syntax instead) without manually converting them one by one?