Bookmark and Share

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

[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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index