PHP code example of lcbrq / magento2-dateformatpatch
1. Go to this page and download the library: Download lcbrq/magento2-dateformatpatch library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lcbrq / magento2-dateformatpatch example snippets
date_default_timezone_set("Europe/Warsaw");
locale_set_default('en_US_POSIX');
$format = (new \IntlDateFormatter(
'pl_PL', \IntlDateFormatter::SHORT, \IntlDateFormatter::NONE
))->getPattern();
echo $format;