Hi All,
I need to change the format of birthdate from 01feb1951 13:00:00 to YYYY-MM-DD. Any help would be appreciated.
Thank you
I need to change the format of birthdate from 01feb1951 13:00:00 to YYYY-MM-DD. Any help would be appreciated.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id double birth_date 1 -2.812716e+11 2 -3.422952e+11 3 -1.701036e+11 4 -4.37508e+11 5 -4.077864e+11 6 -1.265544e+11 7 -3.129192e+11 8 -4.947084e+11 9 -3.10068e+11 10 8.63316e+10 end format %tc birth_date
Thank you
Comment