Hello, I have a dataset of events, some of which occurred in the First Century AD. I am having trouble converting these dates with 2 digit years to Stata date format. Here is an example of my issue. As you can see, Stata successfully converts the three digit and four digit years, but has trouble with a two digit year, and converts it to missing. Does anyone have a solution to this issue?
Code:
. display %td date("0062-09-23", "YMD") . . display %td date("0162-09-23", "YMD") 23sep0162 . display %td date("1162-09-23", "YMD") 23sep1162
Comment