I have data stored like this:
01-JAN-2020 02:20
I'd like to convert it to clock
gen eventdate = clock(datetime_str_numeric, "DMYhms")
Is there any easy way to do this or do I have to use a substring command?
01-JAN-2020 02:20
I'd like to convert it to clock
gen eventdate = clock(datetime_str_numeric, "DMYhms")
Is there any easy way to do this or do I have to use a substring command?
Comment