Added date() function in class.attachments.php

function date( $d="d/m/Y", $index = null )
        {
            $index = is_null( $index ) ? $this->attachments_ref : intval( $index );
            $date = get_the_time ($d,$this->attachments[$index]->id);
            return $date;
        }