Here you do the change date format with this function.
Code :
public function todayDDMMMYY($dt,$format='d-M-Y') {
date_default_timezone_set('Asia/Calcutta');//// Change according itself country Zone
return date($format,strtotime($dt));
}
date_default_timezone_set('Asia/Calcutta');//// Change according itself country Zone
return date($format,strtotime($dt));
}