Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: How to separate date variables


From   Benedito Cunguara <cunguara@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to separate date variables
Date   Fri, 8 Jun 2012 13:45:27 +0200

Dear colleagues,

I have a variable called startdate, formatted %td. Examples of
observations include 01jun2001. I am trying to creating three
variables correspondingly for day, month, and year. For the
observation above, day=1, month=6, and year=2001.

I am using STATA 11.2 IC.

Any help is welcome.

Many thanks,
Benedito

-- 
***
Benedito Cunguara, PhD
Dept. of Agricultural, Food, and Resource Economics
Michigan State University
I am based in Maputo, Mozambique.
Skype: cunguara
Tel. in Mozambique: cell: 258-82-4759690;  office: 258-21-462222
Website: http://www.aec.msu.edu/fs2/mozambique/index.htm
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index