Date Picker in java script

Last Reply 9 days ago By pandeyism

Posted 9 days ago

How to set Date Format in 

 

https://www.aspsnippets.com/Articles/jQuery-UI-DatePicker-Calendar-Example-in-ASPNet.aspx

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

 

You are viewing reply posted by: pandeyism 9 days ago.
Posted 9 days ago
Imaran says:
 format: 'dd/MM/YYYY',

 Change above line of code using below line of code.

dateFormat: 'dd-mm-yy'