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

Re: st: Formatting of dates


From   Tieble Traore <[email protected]>
To   [email protected]
Subject   Re: st: Formatting of dates
Date   Fri, 9 Sep 2005 12:40:10 +0100

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.
Best wishes
Tieble

On 09/09/05, I.Mosca <[email protected]> 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:
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index