use 股票名称地区改造日期,clear gen rq=date(list_date,"YMD") format rq %td format rq %dCY-N-D gen rq1=date(list_date,"YMD") format rq1 %tw gen rq2=date(list_date,"YMD") format rq2 %tm gen rq3=date(list_date,"YMD") format rq3 %tq gen rq4=date(list_date,"YMD") format rq4 %th gen rq5=date(list_date,"YMD") format rq5 %dN-D-CY gen rq6=date(list_date,"YMD") format rq6 %dCY-N-D save 股票名称地区发行日期,replace
标签:rq,format,list,日期,YMD,stata,date,格式,gen From: https://www.cnblogs.com/xkdn/p/17323998.html