Display date only once for a each set of posts relating to that date

Just use the_date(), it has this as a built-in feature.

See the dev docs for more info.

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