Set jQuery UI DatePicker Date Format in jQuery

Last Reply one month ago By pandeyism

Posted one month ago

How to set Date Format in jQuery UI DatePicker (Calendar) Example in ASP.Net

format: 'dd/MM/YYYY' IS NOT WORKING

I USE dateFormat: 'dd-mm-yy'

    <script type="text/javascript">
        $(function () {
            $("[id*=txtBharatKoshDated]").datepicker({
                showOn: 'button',
                buttonImageOnly: true,
                format: 'dd/MM/YYYY',
                buttonImage: '../../images/calendar.png'
            });
        });
    </script>
Posted one month ago
Imaran says:
 format: 'dd/MM/YYYY',

 Change above line of code using below line of code.

dateFormat: 'dd-mm-yy'