DateTimePicker vb.net, how to set DateTimepicker Date.now + 1 year ahed..

Hi!

I am using a DateTimePicker in vb.net.
I want to set this date to: Date.Now + 1 year ahed.

How do i do that ?
LVL 2
team2005Asked:
Who is Participating?
 
TimCotteeConnect With a Mentor Head of Software ServicesCommented:
Hello team2005,

DateTimePicker.Value = Now.AddYears(1)

Regards,

TimCottee
0
 
team2005Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.