setting default month
Hi,
I have an asp.net web page where clinics log in to save their last month's visit count.
I currently have the following code to set the month field, so that the month displayed is the previous month:
lblMonth.Text = UCase(MonthName(Month(System.DateTime.Today)-1)) & " " & (Year(System.DateTime.Today))
What I need to do is have the month change on the 3rd day before the end of the month.
For example, if the date was 6/25/2003, the month displayed would be MAY 2003. If the system date was 6/27/2003, I want the month displayed to be JUNE 2003. Can anyone **************** me how to modify my code to do this?
Thank you,
John
|