Added date() function in class.attachments.php

Added date() function in class.attachments.php to retrieve The date and time of the attachment.