T
tfsmag
Okay, i have a datagrid that I want to populate with invoices that are
due on the month shown on the calendar, so what i need to do is
retrieve the current 'shown' month and create a couple of variables
that allows me to set the beginning date and end date of my range for
the query. This means when i click on July, the datagrid should
repopulate with all the invoices due in July. Here is the code I have
thus far in trying to get those values.
dim shownmonth as string = (need code to get shown month)
dim shownyear as string = (need code to get shown year)
dim beginrange as date = shownmonth & "/1/" & shownyear
Dim daysinmonth As Integer =
beginrange.DaysInMonth(shownyear,shownmonth)
Dim EndRange As Date = shownmonth & "/" & daysinmonth & "/" & shownyear
any help would be very appreciated!
Thanks,
Jeff
due on the month shown on the calendar, so what i need to do is
retrieve the current 'shown' month and create a couple of variables
that allows me to set the beginning date and end date of my range for
the query. This means when i click on July, the datagrid should
repopulate with all the invoices due in July. Here is the code I have
thus far in trying to get those values.
dim shownmonth as string = (need code to get shown month)
dim shownyear as string = (need code to get shown year)
dim beginrange as date = shownmonth & "/1/" & shownyear
Dim daysinmonth As Integer =
beginrange.DaysInMonth(shownyear,shownmonth)
Dim EndRange As Date = shownmonth & "/" & daysinmonth & "/" & shownyear
any help would be very appreciated!
Thanks,
Jeff