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;
1.4m articles
1.4m replys
5 comments
57.0k users