Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

increase the DateTimePicker.dateValue

Tags:

c#

datetime

I am using the DateTimePicker

Now, how do I increase the dateValue by click on the Button

EX:

dtp.DateValue = 1999/8/20

click on Button ----------> dtp.DateValue = dtp.DateValue + x

x is: (number)

thanks

like image 615
mah_85 Avatar asked May 22 '26 00:05

mah_85


1 Answers

Try

dateTimePicker1.Value = dateTimePicker1.Value.AddDays(1);
like image 145
Bala R Avatar answered May 24 '26 15:05

Bala R