I am trying to display the date and time in html /php which are been stored in mysql when the record was created.
The code which I am using displays in this format.

2012-05-08 23:55:48
I want to know whether it is possible to change the format of the date and time while fetching the data from the mysql and having the date format like 9 may 2014 and the time format in am / pm