Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Format date
 
pesz
Member
 
Total Posts:  32
Joined:  2008-10-12
 

I would love to achive a date format like: 2009. May 28. so “%Y. %B d.” format.

how can i achieve it in a template? i found sg like

$this->formatDate($_review->getCreatedAt()), 'long')

but there is nothing long in it, it’ s just like 2009.05.28.

do i miss setting up sg?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rainbow Forest
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2009-04-29
Belgrade, Serbia
 

Are you sure you are editing the right phtml file?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lausianne
Sr. Member
 
Total Posts:  82
Joined:  2010-03-23
 

Which one would be the right one then?

 
Magento Community Magento Community
Magento Community
Magento Community
 
cactork
Member
 
Total Posts:  36
Joined:  2009-06-26
Buenos Aires, Argentina
 

Has someone resolved this?
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gin-chifish
Jr. Member
 
Total Posts:  6
Joined:  2010-05-10
 

up, i have the same question , too.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sander010587
Jr. Member
 
Total Posts:  8
Joined:  2009-12-18
 

I use this:

Mage::helper(’core’)->formatDate($invoice->getCreatedAt(), ‘medium’, false)

medium changing to long would give your desired result?

 Signature 

MegaHorloges

Aeromatic 1912

InventiveWebdesign

 
Magento Community Magento Community
Magento Community
Magento Community
 
ajkochanowicz
Jr. Member
 
Total Posts:  4
Joined:  2011-12-02
 
sander010587 - 01 December 2010 02:38 PM

I use this:

Mage::helper(’core’)->formatDate($invoice->getCreatedAt(), ‘medium’, false)

medium changing to long would give your desired result?

Thanks! This worked for me.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
704132 users|1562 users currently online|499589 forum posts