Dear all,
It might be a very easy question but I am struggling.
I have a variable date of birth in the format dd.mm.yyyy (for example 01.01.2023), that stata sees as string.
I tried to destring it but I get that:
destring dob_baby, replace
dob_baby: contains nonnumeric characters; no replace
I checked, entries have the same format.
How can I obtain a stata date format?
Many thanks!
Manon
It might be a very easy question but I am struggling.
I have a variable date of birth in the format dd.mm.yyyy (for example 01.01.2023), that stata sees as string.
I tried to destring it but I get that:
destring dob_baby, replace
dob_baby: contains nonnumeric characters; no replace
I checked, entries have the same format.
How can I obtain a stata date format?
Many thanks!
Manon
Comment