Skip to content

Instantly share code, notes, and snippets.

@rodde177
Created October 21, 2015 09:11
Show Gist options
  • Select an option

  • Save rodde177/54eaab9cee125a8d8c38 to your computer and use it in GitHub Desktop.

Select an option

Save rodde177/54eaab9cee125a8d8c38 to your computer and use it in GitHub Desktop.
test
$dateFormatIso = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
$fieldset->addField('from_date', 'date', array(
'name' => 'from_date',
'label' => Mage::helper('qbanner')->__('From Date'),
'title' => Mage::helper('qbanner')->__('From Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'format' => $dateFormatIso,
));
$fieldset->addField('to_date', 'date', array(
'name' => 'to_date',
'label' => Mage::helper('qbanner')->__('To Date'),
'title' => Mage::helper('qbanner')->__('To Date'),
'image' => $this->getSkinUrl('images/grid-cal.gif'),
'input_format' => Varien_Date::DATE_INTERNAL_FORMAT,
'format' => $dateFormatIso,
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment