+------------+
| var1 |
|------------|
1. | 21.01.2002 |
2. | 23.01.2002 |
3. | 01.01.2004 |
4. | 07.04.2004 |
5. | 11.09.2001 |
+------------+
. g date=date(var1,"dmy")
. format date %td
. l
+------------------------+
| var1 date |
|------------------------|
1. | 21.01.2002 21jan2002 |
2. | 23.01.2002 23jan2002 |
3. | 01.01.2004 01jan2004 |
4. | 07.04.2004 07apr2004 |
5. | 11.09.2001 11sep2001 |
+------------------------+
Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/