Tuesday, October 20, 2009

Date Time Formats

I am forever tryring to remember these date time formats strings.  It seems like every other program I write requires something different.

Did you know that MMMM is the format string to get the whole month?  Now you do.


MSDN Help

Wednesday, October 7, 2009

Last Day of the Month

So I finally got tired of using my old method to determine the Last Day of the Month.  Which invovled adding a month to the date and them backing into the last day.

And now instead I will just use the built in function Date.DaysInMonth(year, month)!


Dim iLastDay as Integer = Date.DaysInMonth(2009,9)

iLastDay would equal 30.