qgis-sample-QgsDateTimeEdit.py

# coding: utf-8
from qgis.gui import QgsDateTimeEdit

date_time_edit = QgsDateTimeEdit()

date_time_edit.show()