Hello!
I am trying to convert the values from a numeric variable (double) to a string variable. I would like to do this so I can use the "drop" command to get rid of the dates prior to 2016. I tried using the command:
tostring BookingDate, gen(BookingDate_str) but I got the message "BookingDate cannot be converted reversibly; no generate." I pasted a snippet of my data in the table below.
Any advice would be very helpful. Thank you in advance!
I am trying to convert the values from a numeric variable (double) to a string variable. I would like to do this so I can use the "drop" command to get rid of the dates prior to 2016. I tried using the command:
tostring BookingDate, gen(BookingDate_str) but I got the message "BookingDate cannot be converted reversibly; no generate." I pasted a snippet of my data in the table below.
Any advice would be very helpful. Thank you in advance!
BookingDate |
9/19/1991 4:34 |
9/4/2018 4:50 |
7/2/2018 4:30 |
11/6/2017 10:07 |
4/7/2023 1:28 |
4/1/2021 9:43 |
11/14/1986 12:00 |
10/3/2018 3:55 |
5/28/1992 12:00 |
Comment