Last post May 29, 2008 08:39 PM by bubblesnout
May 29, 2008 07:54 PM|Jackxxx|LINK
I'm trying to get the last date of the current month, like 5/31/2008. I have tried the following but I'm missing a parameter for the daysInMonth.
Any help is appreciated.
DateTime.Now.Month.ToString() & "/" & DateTime.Now.DaysInMonth(DateTime.Now.Month).ToString() &
"/" & DateTime.Now.Year.ToString()
May 29, 2008 08:16 PM|d4dennis@inspir3|LINK
You are missing the year parameter.
May 29, 2008 08:39 PM|bubblesnout|LINK
Just for the record, an easier way to get the last day of the current month, is to get the first day of next month, and take 1 day away from it.