Dear All
I have a dataset which, according to the variable labels, has had all dates recorded in the Julian calendar format (https://en.wikipedia.org/wiki/Julian_calendar) - however the actual variables seem to be in a stata format: e.g. datebth (date of birth) = 145941. I know that this date should be between the years 1982 and 1984 as this was when the study participants were born. However, if I format the date using %td I get 12 May 2367 - which doesn't make sense in either calendar.
Here is what I think:
Max
I have a dataset which, according to the variable labels, has had all dates recorded in the Julian calendar format (https://en.wikipedia.org/wiki/Julian_calendar) - however the actual variables seem to be in a stata format: e.g. datebth (date of birth) = 145941. I know that this date should be between the years 1982 and 1984 as this was when the study participants were born. However, if I format the date using %td I get 12 May 2367 - which doesn't make sense in either calendar.
Here is what I think:
- either the label is wrong and the dates are not saved in the Julian calendar - in this case I would be grateful if anyone knows which sort of format this is.
- or I probably need to apply another formatting function (the datetime help file does not seem to contain such a function) - here I would be grateful if anyone knows which function I can use to convert the date into gregorian format.
Max
Comment