Disable Previous (Past) dates in HTML5 Calendar Date Picker in ASP.Net

nauna
 
on Jun 22, 2022 11:09 PM
195 Views

hello,

I have this textbox for date selection, i want to lock previous and same day date selection disable.

 <asp:TextBox ID="txtdate" TextMode="Date" placeholder="Date When the Job is Required" runat="server"></asp:TextBox>
Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Jun 22, 2022 11:16 PM
on Jun 24, 2022 08:37 AM

Hi nauna,

You will need to set the minimum date using the min attribute.

Refer below link.

[Solved] Disable Past dates in HTML5 Calendar Date Picker