I've looked around including T91148: Consolidate MediaWiki core's date and time input widgets; consider moving (one of?) them upstream and didn't see a DateInputWidget to be used outside of MW core (in an on-wiki gadget for example).
Looking at: https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui, I do not see a DateInputWidget available and also TextInputWidget types doesn't support the 'date' type.
In addition, when I check the live preview of code on the MediaWiki DateInputWidget, I get the error that says:
Uncaught TypeError: undefined is not a constructor (evaluating 'new mw.widgets.DateInputWidget()')
Is there a way to make TextInputWidget work with a 'date' type or have DateInputWidget work on OOUI form in on-wiki gadgets?