[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Formatting of dates
If you haven't tried already the "generate datein"command, it could be
worthy trying it with the option year (date start, "y") and list start
datein to see.
On 09/09/05, I.Mosca <I.Mosca@uvt.nl> wrote:
> Dear Fellows,
> we have an entry that looks like the following:
> 1-1-2002 00:00:00
> It is a string variable str19 %19s.
> We'd like to transform it into a numerical/date format, but the information we want to keep is only the year.
> How can we do that?
> Thanks for your help.
> * 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/
* For searches and help try: