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

Re: st: question

From   Neil Shephard <[email protected]>
To   [email protected]
Subject   Re: st: question
Date   Wed, 12 Jan 2005 21:20:00 +0000

On Tue, 11 Jan 2005 21:21:58 -0500, Tony YANG <[email protected]> wrote:
> I want to read a .csv format data into Stata, and in my data set there
> is a date variable like 02/12/1976(dd/mm/yy), then how can I realize
> it? Meanwhile, when I input the previous date in Stata, why it can not
> be displayed correctly, perhaps the result is in around 1960. Thanks.

You can read in .csv files without the need for Stat/Transfer, use the
insheet command with the comma option (see man insheet), something

insheet using [filename.csv], clear comma

will clear the data currently in stata's memory and read in your file
(replace [filename.csv] with the name of your file).

See also chapter 27 of the Users manual for commands to handle dates.


*   For searches and help try:

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