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

on Jun 22, 2022 11:09 PM


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
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