When i try to concat to date columns in my table like so:
CONCAT(`date_from`,' - ',`date_to`) AS `period`
I get a wierd result, something like this:
323031322d30312d303120323031322d30312d3031
But if i change the type of the column from DATE to VARCHAR the result is correct.
Why can’t I concat date columns?
You need to change date type to CHAR using CAST function like