set time variable in stata. There are any references about set time variable in stata in here. you can look below.