Hi all,
I have a time variable that is in strings and looks like:
time
"2023-12-29 08"
"2023-12-29 11"
"2023-12-29 23"
which corresponds to year-month-day hour, and this is a panel data.
I would like to declare -xtset id time-, but I do not know how to properly turn the time (string) variable to a datetime variable.
Any suggestions?
Thanks!
I have a time variable that is in strings and looks like:
time
"2023-12-29 08"
"2023-12-29 11"
"2023-12-29 23"
which corresponds to year-month-day hour, and this is a panel data.
I would like to declare -xtset id time-, but I do not know how to properly turn the time (string) variable to a datetime variable.
Any suggestions?
Thanks!
Comment