I have checked lot of tutos and QA in google.And tried with all permutation and combination tricks.Still my calender is not restricted with maxdate and mindate as i set.please somebody check and let me know whats wrong with my code.

my javascript function is

<script type="text/javascript">
                $(function () {

                maxDate: "+0D",
                showOn: 'button',
                dateFormat: 'mm-dd-yyyy',
                buttonImageOnly: true

and my body code is like below

<asp:TextBox ID="txtPaymentDate" runat="server" CssClass="form-control" placeholder="(YYYY-MM-DD)"></asp:TextBox>
<span id="spnAltContactNumber" style="color: Red;" runat="server"></span>


Eventhough i have set dateformat as dateFormat: 'yyyy-mm-dd' It is still showing date like mm/dd/yyyy format.Please note this also

and i have these following script.Is there any extra is required?

<script type="text/javascript" src="http://code.jquery.com/jquery-1.12.4.js"></script>
    <script type="text/javascript" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
    <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.19.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.19.custom.min.js"></script>

Related posts

Recent Viewed