src/Date/DateUtil.php
public function translateMonthsToEnglish(string $date)
    {
        foreach ($this->getMonthTranslationMap() as $english => $translated) {
            if (false !== strpos($date, $translated)) {
                $date = str_replace($translated, $english, $date);
            }
        }

        foreach ($this->getShortMonthTranslationMap() as $english => $translated) {
            if (false !== strpos($date, $translated)) {
                $date = str_replace($translated, $english, $date);
            }
        }

        return $date;
    }
public function translateMonthsToEnglish(string $date)
    {
        foreach ($this->getMonthTranslationMap() as $english => $translated) {
            if (false !== strpos($date, $translated)) {
                $date = str_replace($translated, $english, $date);
            }
        }

        foreach ($this->getShortMonthTranslationMap() as $english => $translated) {
            if (false !== strpos($date, $translated)) {
                $date = str_replace($translated, $english, $date);
            }
        }

        return $date;
    }
public function translateMonthsToEnglish ( string $ date ) { foreach ( $ this -> getMonthTranslationMap ( ) as $ english => $ translated ) { if ( false !== strpos ( $ date , $ translated ) ) { $ date = str_replace ( $ translated , $ english , $ date ) ; } } foreach ( $ this -> getShortMonthTranslationMap ( ) as $ english => $ translated ) { if ( false !== strpos ( $ date , $ translated ) ) { $ date = str_replace ( $ translated , $ english , $ date ) ; } } return $ date ; }
Translates available months inside a given string into their English representations taking into account the current language.

@param string $date

@return mixed|string
Translates available months inside a given string into their English representations taking into account the current language .