Hello STATLIST,

I'm trying to extract a time period to do my analysis, I used the following code, but STATA keeps complaining "too few quotes", I don't know what is the problem?
//////////////////////////////the code///////////////////

numdate monthly mdate= date, pattern (YM)

tsset mdate
format mdate %tm


generate byte extract = inrange(mdate, date("1970-01", "YM), date("2011-12", "YM"))

////////////////////////
thanks in advance