# XForms - Using custom date widget

**URL:** <https://talk.openmrs.org/t/xforms-using-custom-date-widget/4116>\
**Category:** Ask OpenMRS\
**Tags:** xforms\
**Created:** [December 30, 2015, 8:56am UTC](https://talk.openmrs.org/t/xforms-using-custom-date-widget/4116 "2015-12-30T08:56:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasmhaish](https://talk.openmrs.org/letter_avatar/anasmhaish/32/6_449c533f586939b6e5f246632a46421f.png) [@anasmhaish](https://talk.openmrs.org/u/anasmhaish)\
**Post date:** [December 30, 2015, 8:56am UTC](https://talk.openmrs.org/t/xforms-using-custom-date-widget/4116/1 "2015-12-30T08:56:05Z")

</div>

**Application Name:** OpenMRS **Version Number:** 1.11.5 **Question:** I’m trying to use the custom date widget for the birth date in patient xform, I did as mentioned in [Newbies FAQs](https://wiki.openmrs.org/display/docs/XForms+Newbies+FAQs)

First - In the xform design, right click on the birth date and Change to TextBox Second - Set the external source to date

When submitting using preview, everything is okay, however, when submitting the form the widget works but the chosen date will be like below, I’ve made a demo in dev site [here](http://devtest01.openmrs.org/openmrs/xforms/patientReg.page?target=xformentry&formId=0&patientId=0&refappui=true):

![](https://talk.openmrs.org/uploads/default/original/2X/3/370d345a37720d75ebc8edb1cd39f12a5d8d5635.png)

I

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [December 30, 2015, 2:47pm UTC](https://talk.openmrs.org/t/xforms-using-custom-date-widget/4116/2 "2015-12-30T14:47:24Z")

</div>

This is a bug. Thanks for reporting it. 😄Create a ticket and i will attach a fixed version of the module.

---

<div class="post-metadata">

**Author:** ![anasmhaish](https://talk.openmrs.org/letter_avatar/anasmhaish/32/6_449c533f586939b6e5f246632a46421f.png) [@anasmhaish](https://talk.openmrs.org/u/anasmhaish)\
**Post date:** [December 31, 2015, 7:30am UTC](https://talk.openmrs.org/t/xforms-using-custom-date-widget/4116/3 "2015-12-31T07:30:42Z")

</div>

Done, thanks 😄
