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.

Sanjay KumarRank #561 · 4.3K reputationPosted Mar 16, 2014, 5:58 AM EDT
try this
ID="cmpVal1" ControlToCompare="txtStartDate" ControlToValidate="txtEndDate" Type="Date" Operator="GreaterThanEqual" ErrorMessage="*Invalid Data" runat="server">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
VulpesRank #55 · 29.2K reputationPosted Mar 16, 2014, 6:06 AM EDT
If so replace the Value property in the following expression with whatever property in your control gives the currently selected date as a DateTime: