I have tried to implement datetime picker in Magento2, only date is coming, datetime picker is not appearing,
$eavSetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'start_date',
[
'type' => 'datetime',
'backend' => 'Magento\Catalog\Model\Attribute\Backend\Startdate',
'frontend' => '',
'label' => 'start date',
'note' => 'Add start date with 24 hours time format Ex: mm/dd/yyyy hh:mm:ss(05/01/2017 13:10:10)',
'input' => 'date',
'frontend_class' => 'starting_date',
'source' => '',
'global' => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_STORE,
'visible' => true,
'required' => false,
'user_defined' => true,
'default' => '',
'searchable' => false,
'filterable' => false,
'comparable' => false,
'visible_on_front' => true,
'used_in_product_listing' => true,
'unique' => false,
'apply_to' => '',
'is_used_in_grid' => true,
'is_visible_in_grid' => true,
'is_filterable_in_grid' => true,
'group' => 'CustomAttribute',
]
);
I have tried different option including this [url][1]
[1]: Magento 2 Create Date with Time attribute for product anyone have done this, it will be awesome to share.