views:

339

answers:

1

I want to convert Date & time value into varchar and then store in database

I am fetching the Current Date & time using NOW() in mysql and now want to convert it in string because i have to merge this value with String value

+4  A: 

Use DATE_FORMAT()

SELECT
  DATE_FORMAT(NOW(), '%d %m %Y') AS your_date;
Frank Heikens