src/Traits/DateTime.php
public function convertTimestamp($date, $format)
    {
        if (! is_numeric($date)) {
            $date = strtotime($date);
        }
        
        return $this->getDt()
            ->createFromTimestamp($date, $this->getTz())
            ->format($format);
    }
public function convertTimestamp($date, $format)
    {
        if (! is_numeric($date)) {
            $date = strtotime($date);
        }
        
        return $this->getDt()
            ->createFromTimestamp($date, $this->getTz())
            ->format($format);
    }
public function convertTimestamp ( $ date , $ format ) { if ( ! is_numeric ( $ date ) ) { $ date = strtotime ( $ date ) ; } return $ this -> getDt ( ) -> createFromTimestamp ( $ date , $ this -> getTz ( ) ) -> format ( $ format ) ; }
Converts a timestamp from one format to another

@param mixed $date
@param string $format
Converts a timestamp from one format to another