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
like...
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.
HTH's
Neil
*
* 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/