Is there a way to categorize or recode date variables (say which is in %td format) in Stata? This would be useful in finding the number of outputs by week or months or bi-weeks, and so on. I could not figure it out.