Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: changing ddmmyyyy to yyyymm


From   "Fabian Brenner" <[email protected]>
To   [email protected]
Subject   st: changing ddmmyyyy to yyyymm
Date   Mon, 15 Sep 2008 18:48:46 +0200

Dear all, 

I have the following problem: 

Variable "date" has the following form "11301998" (the format is str8 %8s). I want to create a new variable called "calculation_date"  (format: str6 %9s). Calculation date should have the form "199811".

(that means changing date from ddmmyyyy to yyyymm)

I hope somenone knows a solution for this problem. My aim is to merge two datasets using the new variable calculation_date.

Thanks in advance!
Fabian Brenner
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index