Set jQuery UI DatePicker Date Format in jQuery

Last Reply 4 months ago By pandeyism

Posted 4 months 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 4 months ago
Imaran says:
 format: 'dd/MM/YYYY',

 Change above line of code using below line of code.

dateFormat: 'dd-mm-yy'