In my database table one field upload_datetime
is there and it is having a value like Mon, 02 Jan 2017 15:46:23 GMT. I want to get a formatted date like 2017-01-02 15:46:23
. Please somebody help me with getting it in select query.
I tried with STR_TO_DATE,CAST
but I am not getting any output. It's returning NULL
.