Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to add 3 day in Selected date of Date picker control of Ajax asp.net 4.0
Posted

 
Share this answer
 
Comments
Maciej Los 4-Apr-14 11:35am    
+5
Hi,

Use this code.

textBox1.Text = dateTimePicker1.Value.AddDays(3).ToString("dd-MMM-yyyy");</pre>
 
Share this answer
 
Comments
Maciej Los 4-Apr-14 11:35am    
+5
C#
string a = DatePicker2.CalendarDate.DayOfWeek.ToString();
  int b = DatePicker2.CalendarDate.Day;
   Label9.Text =(b-2).ToString();
 
Share this answer
 

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