datetime - PHP: Date format conversting string 2010-09-02T09:46:48.78 to dd/mm/yyyy -


i pulling date string api. returned string looks this:

2010-09-02t09:46:48.78 

i want convert 02/09/2010 (dd/mm/yyyy) but

date_format($note['createdate'], "d/m/y") 

results in error:

warning: date_format() expects parameter 1 datetime, string given in  

can steer me in right dirtection,

ta,

jonesy

echo date('d/m/y',strtotime('2010-09-02t09:46:48.78')); 

why make complicated ?!


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -