Hi, I’m writing the current month but the language is in English and I need language in Spanish
"DateTimeFormatInfo.CurrentInfo.GetMonthName(datetime.Now.Month-1).ToUpper
"Hi, I’m writing the current month but the language is in English and I need language in Spanish
"DateTimeFormatInfo.CurrentInfo.GetMonthName(datetime.Now.Month-1).ToUpper
"Check this:
String MonthName =
DateTime.Now.ToString("MMMM", System.Globalization.CultureInfo.CreateSpecificCulture("es")).ToString
//Output - noviembre
Regards…!!
Aksh
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.