You can format the date in your sql query (I think so at least), but if not, you can do string replacing:
$search=array("-01-","-02-","-03-","-04-","-05-","-06-","-07-","-08-","-09-","-10-","-11-","-12-");
$replace=array("-Jan-","-Feb-",...);
$date = str_replace($search,$replace,$date);
Put the rest of the months instead of ...
Or you can transform the date into timestamp using [man]strtotime()[/man] and the timestamp to date again with the format you need using [man]date()[/man].