Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Importing dd.mm.yyyy. date into stata date format


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: Importing dd.mm.yyyy. date into stata date format
Date   Sun, 25 Jan 2009 09:30:48 -0500

Dragutin,

Read -help insheet- and -help dates_and_times-.

. insheet using dates.txt
. gen date = date(v1, "DMY")
. format date %td

Friedrich

On Sun, Jan 25, 2009 at 7:09 AM, Dragutin Culinovic
<[email protected]> wrote:
> First. I have to import ASCII data with dd.mm.yyyy. date format into stata
> date variable?
>
> Second. I have yet imported data as ASCII dd.mm.yyyy. in stata, how to
> generate new date variable from these ASCII?
>
> dd and mm are withouth leading zero.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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