Datetime on time tag wordpress puts it outside the tag

General WordPress rule:

when a function starts with get, it will return the value. If it starts with the, it echoes the value.

Here, you need get_the_date('d-m-Y') instead of the_date('d-m-Y').

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