Hi everyone,
I need to convert a Unix timestamp variable into a proper date variable, in format %td please. These dates will be used to match with others that have the same format.
Thank you in advance for your help.
Best,
Michael
Edit: Date variables are expressed in -fecha_alta- and in -fecha_baja- variables.
I need to convert a Unix timestamp variable into a proper date variable, in format %td please. These dates will be used to match with others that have the same format.
- Could anyone have an idea how to do that in stata please?
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(id fecha_alta fecha_baja) 747107 1627776000 1640908800 725268 1627776000 1640908800 741860 1627776000 1640908800 749574 1627776000 1640908800 266011 1628294400 1630368000 end
Thank you in advance for your help.
Best,
Michael
Edit: Date variables are expressed in -fecha_alta- and in -fecha_baja- variables.
Comment