How to convert datetime to string format in SQL query for example just like in PHP there is function of strtotime() how can we do that in SQL query?
-
4Possible duplicate of Convert DateTime Value into String in MysqlShahnawaz Kadari– Shahnawaz Kadari2018-04-01 07:09:33 +00:00Commented Apr 1, 2018 at 7:09
-
1it's a practice to not apply complex operations in db level (string manipulation) in case you would like to have an agile and responsive backend.Evhz– Evhz2018-04-02 12:03:50 +00:00Commented Apr 2, 2018 at 12:03
Add a comment
|