;

Tags: Globalization Articles


How to Get a Month Name from a Month Number in C#

Tutorialsrack 03/04/2020 C# Programs

In this article, we will learn how to get a month's name from the month number in c#. In this article, we will use DateTime formatting and DateTimeFormat class methods that belong to System.Globalization.CultureInfo.CurrentCulture get a month's name from the month number.

Read More..

How to Get a Total Number of Days in a Month in C#

Tutorialsrack 02/04/2020 C# Programs

In this article, we will learn how to get a total number of days in the month in c#. There are two built-in methods to get the total number of days in a month. The first method is DateTime.DaysInMonth(year, month) and the second method is CultureInfo.CurrentCulture.Calendar.GetDaysInMonth(year,month).

Read More..
Recent Posts
Tags