I'm trying to format my date but I keep getting a type mismatch error. My dates are labeled as "MM/DD/YYYY".
What I did was type
How do I get it to recognize my date and solve this mismatch error?
EDIT: I went ahead and formatted in Excel as mmm dd, yyyy, but I still want to know how to get STATA to recognize it from MM/DD/YYYY
Sorry, I'm a newbie.
What I did was type
Code:
gen date2 = date(date1, "MDY")
EDIT: I went ahead and formatted in Excel as mmm dd, yyyy, but I still want to know how to get STATA to recognize it from MM/DD/YYYY
Sorry, I'm a newbie.
Comment