Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Need help to webdatechooser validations
posted

I have two webDateChooser controls in ma ASP form

1.Arrival Date

2.Departura Date

When i select Arrival Date it need to save as i-1 date value (selected value-20/05/2010, save value-19/05/2010) and when i select a Departure Date it Need to save as i+1 date vale (selected date-20/05/2010, save value-21/05/2010).

And also need some validations.

1.Arrival Date cannot be less than DateTime.Now.Date.

2.Departure Date cannot be less than Arrival Date

3.Arrival Date Cannot be greater than Departure Date

 

And need to calculate and display number of days that have Arrivale to Departure Date in textfield.

 

Please help me to do these thiings..im stuck on these things..