How to Display the Current Time in WordPress Local Language

How To Display The Current Time In WordPress Local Language
How To Display The Current Time In WordPress Local Language

This code allows you to display the current local time, in the language the WordPress installation has been configured to use.

Instructions
Add this code in your theme files, where you want to display current time, localized.

<?php echo date_i18n('j F', time()); ?>

Documentation link: https://codex.wordpress.org/Formatting_Date_and_Time

Spread the love

You Might Also Like

Leave a Reply

Your email address will not be published.