Post publish date [duplicate]

This is explained on the according Codex page:

echo get_the_date();

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