<?php $str = "18/08/2011"; preg_match("|(.*?)/(.*?)/(.*?)|", $str, $match); $str = $match[2]."/".$match[1]."/".$match[2]; echo $your_format = date("j M Y", strtotime($str)); ?>