Jul 04 2004

Getting datetime for last day of a month

Posted by admin under .NET

To get the last day in a month from a datetime value is not too hard either but you need to do a little trick:

First get the first day, add one month from that, and then subscract one day from that: