Hi there,
Dont know if anyone has faced a similar issue and can help,
When i combine two date variables with this code;
egen z = concat( date1 date2 ),format (%td)
I get a new variable, z, with points"." at the start and end of the new variable.
-------------+
| z |
|-------------|
1. | .04sep2014 |
2. | .17mar2015 |
3. | .08apr2015 |
4. | .30apr2015 |
5. | .16jun2015 |
|-------------|
6. | 18aug2015. |
7. | 25aug2015. |
8. | 02sep2015. |
9. | .08sep2015 |
10. | 01sep2015. |
The new variable can nolonger function as a date variable.
This happens even when I start by coverting the original variables to string.
Thank you
Dont know if anyone has faced a similar issue and can help,
When i combine two date variables with this code;
egen z = concat( date1 date2 ),format (%td)
I get a new variable, z, with points"." at the start and end of the new variable.
-------------+
| z |
|-------------|
1. | .04sep2014 |
2. | .17mar2015 |
3. | .08apr2015 |
4. | .30apr2015 |
5. | .16jun2015 |
|-------------|
6. | 18aug2015. |
7. | 25aug2015. |
8. | 02sep2015. |
9. | .08sep2015 |
10. | 01sep2015. |
The new variable can nolonger function as a date variable.
This happens even when I start by coverting the original variables to string.
Thank you
Comment