ShareThis

Thursday, June 28, 2012

[C#] DateTime get the last day of the month

Here is a simple way to get the last day of the month we are in, in C#.

DateTime.DaysInMonth(DateTime.UtcNow.Year, DateTime.UtcNow.Month);


0 comments:

Post a Comment