How to display the Media Library Items Upload date

If you have the attachment ID, you can just use get_the_date():

<?php echo get_the_date( '', $attachment_id ); ?>

If you leave the first argument blank, e.g. '', then it will use the date format from settings. If you don’t want that, then provide a PHP date format.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)