I have a column below that has datatype char(24) but the data contains a date
I want to convert the data to datetime so that I can select the data from the past hour like this:
Where CounterDateTime >= DateAdd(hour, -1, getDate())
But I keep getting an error:
Conversion failed when converting date and/or time from character string
even if I convert my CounterDateTime to datetime. Please help.