Format a date 3 : Date Format : Date Time SQL / MySQL


SQL / MySQL » Date Time » Date Format »

 

Format a date 3



/*
mysql> SELECT DATE_FORMAT("2078-08-30 21:19:58", "%m-%e-%Y %l:%i%p");
+--------------------------------------------------------+
| DATE_FORMAT("2078-08-30 21:19:58", "%m-%e-%Y %l:%i%p") |
+--------------------------------------------------------+
| 08-30-2078 9:19PM                                      |
+--------------------------------------------------------+
1 row in set (0.00 sec)


*/  

SELECT DATE_FORMAT("2078-08-30 21:19:58""%m-%e-%Y %l:%i%p");
           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Date Time
» Date Format