You'll be able to use a date widget by the following code (widget-create 'date-field) For more infomation, see