Use [man]strtotime/man to convert it to a "UNIX time" integer, then use [man]date/man to convert that to the desired output format.
PS: Possibly a better alternative would be to convert it within the query itself. For instance, if using MySQL, you could do that via the DATE_FORMAT() function.