Tuesday, November 16, 2010

How to use set the date of a DateTimePicker object in vb.net to today's date?

I want a button that will set a few different dates in 2 different date time pickers (from and to)



Today, Month to Date, Year to Date, Last Month and Last Year



How do I format the variable to set the date time picker = to, and how would i get today's current date from teh system clock?How to use set the date of a DateTimePicker object in vb.net to today's date?
DateTime.Now

No comments:

Post a Comment