Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Display the date

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-14-2007, 03:50 PM
 
DoctorEspresso.com DoctorEspresso.com is offline
 

Member
  
Join Date: Jul 2007
Posts: 13
 

Default Display the date

Hi all, I have been looking for the variable to display the date with no luck, can anyone help me with this?
__________________
Thanks,
DoctorEspresso.com
X-Cart version 4.0.19
Reply With Quote
  #2  
Old 08-14-2007, 04:07 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display the date

Welcome to X-Cart! Please start by reading the forum guidelines (http://forum.x-cart.com/viewtopic.php?t=6489), and posting your X-Cart version in your signature (click the User CP link at the top of the forum). You can find your version by clicking on the 'Summary' link in your admin area.

You'll find Smarty date information here:

http://smarty.php.net/manual/en/language.modifier.date.format.php
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-14-2007, 04:11 PM
 
DoctorEspresso.com DoctorEspresso.com is offline
 

Member
  
Join Date: Jul 2007
Posts: 13
 

Default Re: Display the date

Thanks for the quick reply^^
__________________
Thanks,
DoctorEspresso.com
X-Cart version 4.0.19
Reply With Quote
  #4  
Old 08-14-2007, 04:13 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display the date

Can you please update your signature as requested? Thank you.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-14-2007, 04:21 PM
 
DoctorEspresso.com DoctorEspresso.com is offline
 

Member
  
Join Date: Jul 2007
Posts: 13
 

Default Re: Display the date

I changed it right away, if you do not see the change please let me know?
__________________
Thanks,
DoctorEspresso.com
X-Cart version 4.0.19
Reply With Quote
  #6  
Old 08-14-2007, 04:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Display the date

Seeing it now, thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-23-2007, 09:41 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Display the date

Quote:
Originally Posted by DoctorEspresso.com
Hi all, I have been looking for the variable to display the date with no luck, can anyone help me with this?

The Date is called from many of the email template files, such as:
skin1/mail/html/order_invoice.tpl

Here's the original variable to display the date with time:
{$order.date|date_format:$config.Appearance.dateti me_format}
NOTE - Original generates format: Aug 19, 2007 05:04:27 PM

Here are a few other date variations:
{$order.date|date_format:$config.Appearance.date_f ormat}
NOTE - This generates format: Aug 19, 2007

{$order.date|date_format}
NOTE - This generates format: Aug 19, 2007

{$order.date|date_format:"%D"}
NOTE - This generates format: 08/19/07

Robert
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:25 AM.

   

 
X-Cart forums © 2001-2020