Dear Statalisters,
I have a date variable which is in the following format (it is not a string) :
I would like to add one extra day to this date, if the hours are between 00:00 (midnight) and 04:59 am
I proceed like this
However stata does not produce any changes (0 replacement made). I checked on the internet already, but I cannot find a solution.
Thank you for kind your help and your understanding
I have a date variable which is in the following format (it is not a string) :
Code:
browse date . 30dec1899 23:09:25 ...
I proceed like this
Code:
capt drop hours gen hours=hours(date) replace date=date+1 if hours<5
Thank you for kind your help and your understanding
Comment