Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date Format


benbow

Recommended Posts

Posted

Hi, On the create account page i would like to change the date format so it shows as follows -

 

DD/MM/YYYY

 

Could anyone point me in the right direction as to which files i have to be in to do these changes.

 

Any help would be appreciated......... :)

Posted
Hi, On the create account page i would like to change the date format so it shows as follows -

 

DD/MM/YYYY

 

Could anyone point me in the right direction as to which files i have to be in to do these changes.

 

Any help would be appreciated......... :)

 

 

In your create-account.php you will find it, and then in you language files be sure to change the example as well. You can also add a contribution that gives you a dropdown menu called DROPDOWN MENU FOR DOB easy to install.

Posted
Hi, On the create account page i would like to change the date format so it shows as follows -

 

DD/MM/YYYY

 

Could anyone point me in the right direction as to which files i have to be in to do these changes.

 

Any help would be appreciated......... :)

you can change the date to the UK date format in the two english.php files under includes/languages folders under catalog and admin directories. Just look for the first 20 lines or so for any reference to dates. Easy thing to do for anyone.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

Hi, i Have changed all dates in the English php:

 

 

 

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');

 

////

// Return date in raw format

// $date should be in format dd/mm/yyyy

// raw date is in format YYYYMMDD, or DDMMYYYY

function tep_date_raw($date, $reverse = false) {

 

 

 

 

// text for date of birth example

define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

 

 

 

 

 

 

 

 

define('ENTRY_LAST_NAME_TEXT', '*');

define('ENTRY_DATE_OF_BIRTH', 'Date of Birth:');

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: DD/MM/YYYY (eg 31/12/1970)');

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 31/12/1970)');

 

I have changed all the above as you can see, is there anything else do i have to change as it is still coming up the usa way mm/dd/yyyy :)

Archived

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

×
×
  • Create New...