I have a date Variable, Date = 07-april-2022 which is in string format and I want to convert that string variable into numeric,
I am using command
gen date= date(date1, "DMY")
to convert date string into numeric but I am getting missing all observation.
help me out.
I am using command
gen date= date(date1, "DMY")
to convert date string into numeric but I am getting missing all observation.
help me out.
Comment