public function getDatePrettyPrint()
  {
    $date = str_replace('?', '', $this->date);
    $date = explode('.', $date);
    $date = array_filter($date);

    if (count($date) == 2 || count($date) == 3) {
      $month = date('F', mktime(0, 0, 0, $date[1], 1));
      $date = "$month, $date[0]";
    } elseif (count($date) == 1) {
      $date = $date[0];
    } else {
      $date = null;
    }

    return $date;
  }
public function getDatePrettyPrint()
  {
    $date = str_replace('?', '', $this->date);
    $date = explode('.', $date);
    $date = array_filter($date);

    if (count($date) == 2 || count($date) == 3) {
      $month = date('F', mktime(0, 0, 0, $date[1], 1));
      $date = "$month, $date[0]";
    } elseif (count($date) == 1) {
      $date = $date[0];
    } else {
      $date = null;
    }

    return $date;
  }
public function getDatePrettyPrint ( ) { $ date = str_replace ( '?' , '' , $ this -> date ) ; $ date = explode ( '.' , $ date ) ; $ date = array_filter ( $ date ) ; if ( count ( $ date ) == 2 || count ( $ date ) == 3 ) { $ month = date ( 'F' , mktime ( 0 , 0 , 0 , $ date [ 1 ] , 1 ) ) ; $ date = "$month, $date[0]" ; } elseif ( count ( $ date ) == 1 ) { $ date = $ date [ 0 ] ; } else { $ date = null ; } return $ date ; }
Get the date formatted smartly.
@return string
Get the date formatted smartly .