Hi everyone. I am a STATA beginner trying to calculate a time span. I have one variable “in” with date and time for example: 1/1/2021 10:00 (format %tcnn/dd/ccYY_hh:MM). I also have a variable “out” for example: 2/2/2021 12:00. I would like to calculate how many days it is between “in” and “out”. I tried datediff(in, out, day[,1mar]) but it does not work.
Any suggestions?
All the best!