Dear Statalisters,
I have in my dataset a double variable that contains date as following 9/15/2015 8:50.
I would like to have it in date format. I proceeded like this :
Instead of clock, I also used tc and date functions, but without any success...
Thank you for your kind help
P.S I've also tried : "MM/DD/YYYY hh:mm" but this also didn't work
I have in my dataset a double variable that contains date as following 9/15/2015 8:50.
I would like to have it in date format. I proceeded like this :
Code:
gen new_date=clock(original_double,"MDY hm")
Thank you for your kind help
P.S I've also tried : "MM/DD/YYYY hh:mm" but this also didn't work
Comment