Hello,

I have a date/time variable formatted in the following way: "01-24-2019, 03:26 PM" and cannot figure out how to destring it. I have tried several variations of gen date=clock(datetime,"MM-DD-YYYY, hm") but this hasn't worked. Any help would be much appreciated.

Thank you,

Sarah