This example upgrades the text entry width id "dob" using the datetextentry widget with default settings.
Once you have included the necessary Javascript and CSS files, the date widget can be applied to a text entry field like this:
$('#dob').datetextentry();
Note, the default field order is DD/MM/YYYY but this can be changed easily as shown in the next example.