Skip to content

Instantly share code, notes, and snippets.

@mehedicsit
Created May 3, 2019 06:56
Show Gist options
  • Save mehedicsit/2ec46f5d77bdda953f73b345a88014be to your computer and use it in GitHub Desktop.
Save mehedicsit/2ec46f5d77bdda953f73b345a88014be to your computer and use it in GitHub Desktop.
us date format for opencart 3
<!-- Modify the catalog English default.php file -->
-<file name="catalog/language/en-gb/en-gb.php">
$_['date_format_short'] = 'd/m/Y'; replace this line with
this line
$_['date_format_short'] = 'm/d/Y';
$_['date_format_long'] = 'l dS F Y';
replace this line with
this line
$_['date_format_long'] = 'l, F j, Y';
<!-- Modify the admin English default.php file -->
$_['date_format_short'] = 'd/m/Y'; replace this line with
this line
$_['date_format_short'] = 'm/d/Y';
$_['date_format_long'] = 'l dS F Y';
replace this line with
this line
$_['date_format_long'] = 'l, F j, Y';
-<file name="admin/language/en-gb/en-gb.php">
$_['date_format_short'] = 'd/m/Y'; replace this line with
this line
$_['date_format_short'] = 'm/d/Y';
$_['date_format_long'] = 'l dS F Y';
replace this line with
this line
$_['date_format_long'] = 'l, F j, Y';
@mehedicsit
Copy link
Author

Check the screenshot how date format has been changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment