jQuery UI Datepicker Example #1 (works)

Created For: http://stackoverflow.com/q/10961976/352449

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.20/themes/base/jquery-ui.css">
<input type='text' id='txtDate' readonly='true' />
<input type='button' id='btnConvert' value='Change' /><br/>
Current Date : <span id='spnCurrentDate'></span>

JavaScript

$("#txtDate").datepicker({
    changeMonth: true
});

$("#btnConvert").click(function(){
$("#spnCurrentDate").html($('#txtDate').val().replace(/\//g, ""));
});