src/Core/TypeManager.php
public function convertDatetimeFormat($oldFormattedValue, $oldFormat, $newFormat)
    {
        if ($oldFormat == $newFormat) {
            return $oldFormattedValue;
        }
        $timeStamp = $this->_parseDate($oldFormat, $oldFormattedValue);
        return strftime($newFormat, $timeStamp);
    }
public function convertDatetimeFormat($oldFormattedValue, $oldFormat, $newFormat)
    {
        if ($oldFormat == $newFormat) {
            return $oldFormattedValue;
        }
        $timeStamp = $this->_parseDate($oldFormat, $oldFormattedValue);
        return strftime($newFormat, $timeStamp);
    }
Convert a formatted datetime to another format

@param $oldFormattedValue - old formated value
@param $oldFormat - old format of value
@param $newFormat - new format of value
@return string new formatted datetime value