Created
November 29, 2023 14:42
-
-
Save coulterpeterson/3ebbb3a71dffe65170b745aa98f515c7 to your computer and use it in GitHub Desktop.
WordPress Localize Date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$date_start = date_create( '2023-05-16' ); | |
// Localize date using current Locale | |
$date_start = date_i18n( 'F j, Y', $date_start ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment