SyntaxFix
Write A Post
Hire A Developer
Questions
Try the following code
Month = Date = DateTime.Now.Month.ToString(); Year = DateTime.Now.Year.ToString(); ViewBag.Today = System.Globalization.CultureInfo.InvariantCulture.DateTimeFormat.GetMonthName(Int32.Parse(Month)) + Year;