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: How to separate date variables


From   Benedito Cunguara <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index