I am fetching the current date & time using NOW() in mysql. I want to convert the date value into a varchar and concat it with another string. How do I do it?
Use DATE_FORMAT()
SELECT DATE_FORMAT(NOW(), '%d %m %Y') AS your_date;
2.1m questions
2.1m answers
60 comments
57.0k users