How to limit datetime UI to select only dates after today or now?

i understand that there are lots of solution for datetimepicker, but im using a textbox in asp.net which textmode is Date, so i want to make sure that it only shows dates that is today or after.How can i do it?

<div class="col-lg-6 mb-4">
<asp:TextBox ID="endDateTb" CssClass="form-control" placeholder="EndDate" runat="server" TextMode="Date"></asp:TextBox>
</div>


Also, if the textbox date is past today's date (example, endDate = 2th Jan 2019, and now is 3th jan 2019), i would like the database to automatically call the delete query from database. Any idea how can i do it

#c-sharp #asp.net

1 Likes2.20 GEEK