You can format the date using a mysql query...
query = "date_format(date, '%d %M %Y')"
this will return:
01 January 2002
there are many ways to recall the info
%W weekday name e.g. Monday
%a weekday short e.g. Mon
%d day of month e.g. 01
%e day of month e.g. 1
%D day of month e.g. 1st
%M month e.g. January
%b Month short e.g. Jan
%Y year 4 digit 2002
%y year 2 digit 02
date being the timestamp column in your database....
Hope that helps