Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CHANGE THE DATE AND TIME FORMAT HOW I DO


Guest

Recommended Posts

:shock:

i want to change the default date format in footer.php my country format.

because to be seen english. i want to see turkish. how i do. please help me. i change the default language. the site turkish but date and time format not turkish. thanks.

Link to comment
Share on other sites

  • 3 months later...

Just you will do like this , everthing will ok.. For new version

 

 

 

For date :

 

========================================

 

setlocale(LC_TIME, 'turkish');

 

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

define('DATE_FORMAT_LONG', '%d %B, %Y%A '); // this is used for strftime()

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

===================================================

For crackter

 

// charset for web pages and emails

define('CHARSET', 'iso-8859-9');

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...