Startdate datetimepicker1
Enddate datetimepicker2
i want to validate three conditions from the above startdate and enddate in datetimepicker.
Startdate always be monday's date
Endate always be saturday's date
startdate must be less than enddate. the date differnce is 12 days
if user select the start date 10 mar 2014 (monday) then end date must be 22 mar 2014 (saturday)
for that how can i validate in asp.net using c#.
REgards,
narasiman P.
please help me.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 16, 2014, 10:06 AM
If so replace the Value property in the following expression with whatever property in your control gives the currently selected date as a DateTime:
Sanjay KumarPosted Mar 16, 2014, 9:58 AM
try this
http://devssolution.com/start-date-and-end-date-validation-in-asp-net/
http://www.aspdotnet-suresh.com/2012/04/jquery-datepicker-set-end-date-greater.html