date in fputcsv

fputcsv($fpr,array(date ( 'm-j',$p['dateordered']),date ( 'm-j',$p['returndate'])
));

date is
2010-08-10 15:33:39.000

i am getting
1-Jan

I want
10-Aug
LVL 1
rgb192Asked:
Who is Participating?
 
marchentConnect With a Mentor Commented:
replace
date ( 'm-j',$p['dateordered'])


with
date('j-M', strtotime($p['dateordered']) )
0
 
Ray PaseurConnect With a Mentor Commented:
When you need to handle date / time fields in PHP and MySQL, this reference may be useful to you.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201.html
0
 
rgb192Author Commented:
thanks
0
All Courses

From novice to tech pro — start learning today.