magento varian form datetime,date

piaoling  2012-07-23 09:32:03

$dateFormatIso = 'yyyy-M-d HH:mm:ss';
        $fieldset->addField(
            'start_time', 'date', array(
            'name'         =>   'start_time',
            'time'         =>    true,
            'label'        =>    Mage::helper('adminhtml')->__('Start Time'),
            'title'        =>    Mage::helper('adminhtml')->__('Start Time'),
            'image'        =>    $this->getSkinUrl('images/grid-cal.gif'),
            'input_format' =>    Varien_Date::DATETIME_INTERNAL_FORMAT,
            'format'       =>    $dateFormatIso,
                                                  )
        );

类别 :  magento(258)  |  浏览(4456)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: