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

st: RE: weird date format


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   st: RE: weird date format
Date   Mon, 21 Nov 2005 16:43:01 +0100

Hi H.

The usual Stata format of dates is days after 01 January 1960, but that would mean that your respondents will be born around 2300, so it isn't Stata date format. You can check that as like this:

. input dob

           dob
  1. 141116    
  2. 141016
  3. 150189
  4. 125494
  5. 126759 
  6. end

. format dob %d

. list

     +-----------+
     |       dob |
     |-----------|
  1. | 13may2346 |
  2. | 02feb2346 |
  3. | 16mar2371 |
  4. | 05aug2303 |
  5. | 21jan2307 |
     +-----------+

.

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Haidong Wang
Sent: maandag 21 november 2005 16:33
To: [email protected]
Subject: st: weird date format

Hi,

I'm using a dataset with a format of date of birth (dob) which I can't
recognize.


     +--------------+
     |    dob       age |
     |--------------|
  1. | 141116    27 |
  2. | 141016    27 |
  3. | 150189     2 |
  4. | 125494    70 |
  5. | 126759    66 |
     +--------------+
The survey was carried out between 1996 and 1997. So, the first
respondents who's date of
birth was "141116"  was 27 years old at that time, either 1996 or 1997.

Does anyone know what format of date are those?

Thanks!

H.

*
*   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