Manual:DateInputWidget

MediaWiki includes a DateInputWidget that can be used for user interfaces that require selecting a date. You can see an example of it in the interface for UploadWizard.

Example code:

See https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.widgets.DateInputWidget for further documentation.