I have a date of admission (ex. 02mar2018 00:00:00) and date of intervention (ex. 05mar2018 00:00:00) variables in DMYhm long format:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(dt_adm dt) 1.835568e+12 1.8358272e+12 1785974460000 1785974520000 1767570840000 1.7678736e+12 1827425160000 1827662940000 1797352980000 1.797408e+12 1.8025632e+12 1.803168e+12 1807650360000 1.8080457e+12 1840039080000 1.8400929e+12 1.8462816e+12 1.846368e+12 1.7840133e+12 1.7840232e+12 1838927460000 1.8389844e+12 1792784280000 1.7936991e+12 1854378720000 1.854789e+12 1.8186336e+12 1.8186336e+12 1833068460000 1.8334404e+12 1.7916576e+12 1.791711e+12 1856194740000 1.8562563e+12 1.7901468e+12 1.7901507e+12 1857663240000 1857728520000 1833613140000 1.8336201e+12 1.8280512e+12 1.8280512e+12 1.8570816e+12 1.8570816e+12 1819474620000 1819630320000 1.796472e+12 1.7967336e+12 1835940060000 1.8359478e+12 1770856140000 1.7709204e+12 1811700660000 1.8119322e+12 1810109940000 1.8101169e+12 1.8334368e+12 1.8334638e+12 1.8230103e+12 1.8230184e+12 end format %tc dt_adm format %tc dt
0 Response to Difference between two dates in days
Post a Comment