Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: generate age variable from year and month of birth and date of the survey


From   "Blais, Martin" <[email protected]>
To   <[email protected]>
Subject   st: generate age variable from year and month of birth and date of the survey
Date   Wed, 27 Mar 2013 22:55:41 -0400

Hello

I am not familiar with dates manipulation in Stata.

I need to create an age variable based on year and month of birth and =
date of the survey.

The three variables are :
bdaymonth (1-12)
bdayyear (yyyy)
timestamp (%tc; displaying 21mar2013 18:46:25)

Can anyone help?

Many thanks,
Martin


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index