Date Time Functions MySQL Tutorial

mysql>
mysql> SELECT DATE_FORMAT('1997-10-04 22:23:00', '%r');
+------------------------------------------+
| DATE_FORMAT('1997-10-04 22:23:00', '%r') |
+------------------------------------------+
| 10:23:00 PM                              |
+------------------------------------------+
1 row in set (0.00 sec)