Good evening,
I have a string variable setted in this way
, how can I convert it data variable?
I had already broke it in two part and managed until days, but I still have some problems with hours...
but the last command return me some errors, I am sure that there is a quickly way without break the variable.
Many thanks in advance for your time
I have a string variable setted in this way
Code:
27-JAN-2022 08:19:43
I had already broke it in two part and managed until days, but I still have some problems with hours...
Code:
gen DAYstring = word( StartDate, 1) gen DAYdate = date(DAYstring, "DMY") gen Hstring = word( StartDate, 2) gen hdate = clock(Hstring)
Many thanks in advance for your time
Comment