vb.net DatePicker default to beginning and end of week
Posted on 2009-05-08
I had created a VB.Net windows form. I would like to use 2 datepicker as a search. However, I would like the default value from first datepicker to be beginning date of week and datepicker2 to be ending date of week.
So example would be something like:
Monday - Sunday --> 5/4/2009 - 5/10/2009
Monday - Sunday --> 5/11/2009 - 5/17/2009
Can anyone help with this by sending my form_load to have these default date range for the datepicker control?