I would like to add a date field with calendar that uses english language format. So the date should look like 01 february 2011. Problem is that my locale is italian. How to change format and force it to use english locale?

Here's my actual code

$fieldset->addField('created_at', 'date', array(
        'label'     => Mage::helper('review')->__('Review Date'),
        'name'      => 'created_at',
        'image' => $this->getSkinUrl('images/grid-cal.gif'),
        'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_LONG),

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.