Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to generate preceding dates from a particular date


From   "MITRA PINAKI (MAR1PXM)" <mar1pxm@ups.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to generate preceding dates from a particular date
Date   Wed, 14 Apr 2004 17:25:12 -0400

Hello list,

I have data by weekending dates where weekending is always Saturday. For
example, data sets go by data041004, data040304, data032704, etc. When I use
any particular data set, I would like to check with past 9 months of weekly
data and see if any of the current records exists in previous data sets. I
would like to get any help on how to create the series of proceeding
weekending dates. I tried to create a local variable with the current
weekending date but couldn't convert it to date format and subsequently, any
preceding dates. 

Any help would be greatly appreciated.

Thanks,
Pinaki Mitra

      

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index