How to add date field in admin in Magento 2

- Fire development, Magento 2

Magento 2 Development

In Magento 2 to add date field in admin from a core model, pass all required to parent::__construct() arguments, which should be called from __construct(). Please note that both your construct class and parent construct must accept the same list of arguments. Add new dependencies in the following way:


In case of parent construct:

In case of  child construct:

Source (Stackexchange Question)(Alex P)

More tips from the Cookbook