get_the_date() for translating date format

Try below code.

echo get_the_date(__('M d'));

Output:

Feb 09

echo get_the_date(__('M d, Y'));

Output:

Feb 09, 2017

Leave a Comment

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