title: Time Series Stata date convert daily to quarterly returns scientific notation
body: <p>I have data with daily frequency from 01Jan2000 to 30Dec2015, this series was formatted as date (format date %d). I was able to extract day, month and year using day(date), month(date), and year(date). </p>
  
  <p>I also need to generate a variable indicating its quarter, I used gen quarterly=dofq(date), and then format quarterly %tq. Instead of returning the format 2000q1, I got bunches of scientific notations (eg. 1.2e+06). Does anyone know why and how I can fix that? </p>
  
  <p>Thanks in advance!</p>