Get internationalizationed date

Get internationalizationed date in WordPress:

<?php 
echo date_i18n('l, d F Y, G:i');
?>

This code will output this string: "Friday, 15 April 2011, 21:38" in the language of your WordPress instalation.

Leave a Reply

Your email address will not be published. Required fields are marked *