Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to select date after current date + 8
so between current day and after 7 days date should be disable in calendar

Thanks

What I have tried:

ASP.NET
$(document).ready(function () {
            
           $(".Calender").dynDateTime({
                   showsTime: true,
                   //ifFormat: "%Y/%m/%d %H:%M",
                   ifFormat: "%d/%m/%Y",
                   daFormat: "%l;%M %p, %e %m, %Y",
                   align: "BR",
                   electric: false,
                   singleClick: false,
                   minDate: '0',
                   maxDate: '+7D',
                   displayArea: ".siblings('.dtcDisplayArea')",
                   button: ".next()"
                   
               });
          
        });
    




-----------------

 <div class="row">
                                    <div class="col s4 ">
                                        *
                                        BookDate:
                                    </div>
                                    <div class="col s1  lbldesign">
                                        :
                                    </div>
                                    <div class="col s6 ">
                                        <asp:textbox id="txtToDate" cssclass="Calender" runat="server">
                                     
                                    </div>
                                </div>
Posted
Updated 17-Mar-21 0:15am
v2
Comments
Richard Deeming 17-Mar-21 5:59am    
And?

You seem to have forgotten to ask a question.
Member 10194266 17-Mar-21 6:17am    
sorry, my question is i want to select date after current date + 8 days and other date should be disable in calander
Richard Deeming 17-Mar-21 6:18am    
No, that's not a question; that's a requirement.

Update your question to show what you have tried, and describe where you are stuck.
Member 10194266 18-Mar-21 0:21am    
yes sir , my requirement is my question .
i have tried maxDate: '+7D' and its not working
Member 10194266 18-Mar-21 0:21am    
yes sir , my requirement is my question .
i have tried maxDate: '+7D' and its not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900