Languages: English • 日本語 (Add your language)
Retrieve the date in localized format, based on timestamp.
If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn't, then the date format string will be used instead.
i18n is an abbreviation for Internationalization. (There are 18 letters between the first "i" and last "n".)
<?php echo date_i18n( $dateformatstring, $unixtimestamp, $gmt ); ?>
Depending on your blog settings you will see the date displayed in your local format, for example: 15. november 1976.
<?php echo date_i18n( get_option( 'date_format' ), strtotime( '11/15-1976' ) ); ?>
date_i18n() is located in wp-includes/functions.php
.
L10n: translate(), __(), _e(), _n(), _x(), _ex(), _nx(), esc_attr__(), esc_attr_e(), esc_attr_x(), esc_html__(), esc_html_e(), esc_html_x(), _n_noop(), _nx_noop(), translate_nooped_plural()