Magento是否支持类型为date而不是datetime的属性

Magento是否支持类型为date而不是datetime的属性,magento,Magento,我有这个格式的问题,我不知道magento是否支持它。 在代码中,我有: $this->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'release_date', array( 'input' => 'date', 'type' => 'datetime', 'label' => 'Release date', 'backend' =

我有这个格式的问题,我不知道magento是否支持它。 在代码中,我有:

$this->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'release_date', array(
   'input'         => 'date',
   'type'          => 'datetime',
   'label'         => 'Release date',
   'backend'       => 'eav/entity_attribute_backend_datetime',
   'visible'       => true,
   'required'      => false,
   'user_defined'  => true,
   'visible_on_front' => true,
   'global'        => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL
 ));
如何将类型更改为日期?如何从Magento区域设置使其可靠?

这里是解决方案

  $data = array(
       "attribute_code" => "date_attribute_3",
       "frontend_input" => "date",
       "default_value" => "06/19/2014",
       "is_unique" => 0,
       "is_global"=>"1",
       "is_required" => 0,
       "apply_to" => array("simple"),
       "is_configurable" => 0,
       "is_searchable" => 0,
       "is_visible_in_advanced_search" => 0,
       "is_comparable" => 0,
       //"is_global" =>1,
       "is_used_for_promo_rules" => 0,
       "is_visible_on_front" => 0,
       "used_in_product_listing" => 0,
       "additional_fields" => array(),
       "frontend_label" => array(array("store_id" => "0", "label" => "my date"))
      );

    $Attribute=Mage::getModel('catalog/product_attribute_api')->create($data);

我发现Magento没有日期类型。