Click here to Skip to main content
16,019,618 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Team ,

I am making simple application for placement cell about job seeker registration .

I want to show registration date by selecting date from calender control
and it will show expire date after 1 year in second text box automatic


please tell me in C# windows based application and Asp.net

Many Thanks-
Posted
Comments
Thanks7872 23-Nov-13 1:05am    
And what is the question?

1 solution

in windows application....

Please use the value changed event for the datepicker control....
and use the following in that event...


C#
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
       {
           var datepicker = sender as DateTimePicker;
           textBox1.Text = datepicker.Value.AddDays(365).ToString();

       }




I am not sure, which date picker u r using in the asp web application...
post some piece of code for web, so that i can give u solution for web...


Thanks.
 
Share this answer
 
Comments
Member 10272175 23-Nov-13 13:20pm    
Hi Sir

I am building this in C# windows based app. I have two textboxes From Date and expire date please tell me ....I want that expire date will autopopulate by from date ...please tell me how to do this ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900