Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change format date


naire

Recommended Posts

Posted

Hi,

 

I'm find how change format date in the oscommerce v2.2?

I'm brazilian and here we don't use MM/DD/YYYY, we used DD/MM/YYYY.

 

Tks

Posted

Most civilised countries do, can't understand why any would do otherwise.

 

(just want to see how many blasts I can generate :-) )

 

/includes/languages/english.php

/includes/languages/spanish.php

/includes/languages/portugese.php

 

etc

 

@setlocale(LC_TIME, 'en_EN.ISO_8859-1');

 

http://www.w3schools.com/php/func_string_setlocale.asp

 

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

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

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

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

 

http://www.w3schools.com/php/func_date_date.asp

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...