How to change Data format in Jquery DataPicker

<script type="text/javascript">
    $(document).ready(function () {
        $("#<%=txtDate.ClientID %>").datepicker({
        dateFormat: 'dd-mm-yy',
            changeMonth: true,
            changeYear: true
        });
    });
</script>


In this dateFormat field you have to specify your custom format.

No comments:

Post a Comment