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 on April 23, and its replacement, 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 <>
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 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
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index