ASP.NET

Convert Monthname to Month number:

string strMonthName = "January";
DateTime.ParseExact(strMonthName, "MMMM", CultureInfo.CurrentCulture).Month;

Convert MonthNumber to Monthname:

CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(1);

No comments:

Sending email from website using Microsoft Office 365 OAuth2

Step 1: Register an Application in Microsoft Entra ID Sign in to the Microsoft Azure portal: Microsoft Azure Portal Navigate to: Microsoft E...