Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

DATETIME Function


nwfast

Recommended Posts

On my "My Account" page, I've made several additions -- 2 of which being the date and time when the account was created and the date and time when the account was last modified.

 

Currently, the date and time are displayed as YYYY-DD-MM HH:MM:SS.

 

How can I change the format of the date to be more user friendly?

Also, I would like to be able to add the following:

 

You joined (STORE_NAME) xx days ago, with xx being the amount of days since they created their account. I know that their are php functions capable of accomplishing this -- does anyone have any suggestions?

Link to comment
Share on other sites

On my "My Account" page, I've made several additions -- 2 of which being the date and time when the account was created and the date and time when the account was last modified.

 

Currently, the date and time are displayed as YYYY-DD-MM HH:MM:SS.

 

How can I change the format of the date to be more user friendly? 

Also, I would like to be able to add the following:

 

You joined (STORE_NAME)  xx days ago, with xx being the amount of days since they created their account.  I know that their are php functions capable of accomplishing this -- does anyone have any suggestions?

Aha. Here's what you've gotta do:

 

$date_last_modified must be equal to something similar to this:

 

$date_last_modified=$account_info['customers_info_date_account_last_modified'];

 

<?php echo tep_date_long($date_last_modified); ?>

 

Voila

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...