The last day of the month you get like this, which returns 31:
DateTime.DaysInMonth(1980, 08);
More Related Contents:
- How do I calculate someone’s age based on a DateTime type birthday?
- Parse string to DateTime in C#
- Parse DateTime with time zone of form PST/CEST/UTC/etc
- Creating a DateTime in a specific Time Zone in c#
- How to truncate milliseconds off of a .NET DateTime
- C# DateTime.Now precision
- format date in c#
- calculating the difference in months between two dates
- What does “DateTime?” mean in C#?
- Measuring code execution time
- How to compare DateTime in C#?
- Environment.TickCount vs DateTime.Now
- Why DateTime.AddHours doesn’t seem to work?
- How to convert Javascript datetime to C# datetime?
- How to find the 3rd Friday in a month with C#?
- How does DateTime.ToUniversalTime() work?
- Parse C# string to DateTime
- DateTime ToString issue with formatting months with “mm” specifier
- why does DateTime.ToString(“dd/MM/yyyy”) give me dd-MM-yyyy?
- How to ensure a timestamp is always unique?
- How can I format DateTime to web UTC format?
- datetime to string with time zone
- How frequent is DateTime.Now updated ? or is there a more precise API to get the current time?
- DateTime conversion from string C#
- Getting the first and last day of a month, using a given DateTime object
- Days, hours, minutes, seconds between two dates
- How to check if a DateTime occurs today?
- Convert DateTime to long and also the other way around
- LINQ Query to Convert string to datetime
- .NET DateTime to SqlDateTime Conversion