hello am looking to get a result like this Oct 27 from a date format that's like this 2011-10-27 22:20:29 how can i do this using good ole Php or is it at all possible any help would be greatly appreciated thanks
http://php.net/manual/en/function.date.php , scroll down to example #4 to see similar solutions. You just need to get Month and day from date function.
hey russ thanx a bunch for the reply wasnt quite what i was looking for but... i was able to get it done by using the php mktime() function together with date function here it is in case any body else might need to do something like this... or even if there is someone who knows of a shorter more efficient way of doing it please let me know, cause i gotta admit this code is kinda messy but it got it done for me $added_date="2011-10-27 22:20:29"; $added_ymd=substr($added_date,0,10); $added_ymd=explode("-",$added_ymd); $added_hms=substr($added_date,11); $added_hms=explode(":",$added_hms); echo(date("M-d-Y",mktime($added_hms[0],$added_hms[1],$added_hms[2],$added_ymd[1],$added_ymd[2],$added_ymd[0]))."<br />");
wow min binary simply simple, simply brilliant... well done my friend thanx for this mind if i come to you for any php help in the future. thank you again