Hi all,
I have run successfully converted other strings in my dataset using this code, but for this variable it only returns missing values. I've tried a few things, listed below. For reference the shift_start variable looks like this:
shift_start
17-May-82 13:00:00
generate double num_shift_start = clock(shift_start, "DMYhm")
generate double num_shift_start = clock(shift_start, "DM19Yhm")
generate double num_shift_start = clock(shift_start, "DMYhm", 1982)
I have run successfully converted other strings in my dataset using this code, but for this variable it only returns missing values. I've tried a few things, listed below. For reference the shift_start variable looks like this:
shift_start
17-May-82 13:00:00
generate double num_shift_start = clock(shift_start, "DMYhm")
generate double num_shift_start = clock(shift_start, "DM19Yhm")
generate double num_shift_start = clock(shift_start, "DMYhm", 1982)
Comment