You'll be able to use a date widget by the following code

(widget-create 'date-field)

For more infomation, see <https://github.com/aki2o/emacs-date-field/blob/master/README.md>