Question:You are developing a fiscal report for a customer. Your customer has a main office in the United States and a satellite office in Mexico. You need to ensure that when users in the satellite office generate the report, the current date is displayed in Mexican Spanish format. Which code segment should you use?
A Calendar cal = new CultureInfo("es-MX", false).Calendar; DateTime dt = new DateTime(DateTime. Today.Year,
DateTime.Today.Month, DateTime.Today.Day);
Strong dateString = dt.ToString();
B string dateString = DateTime.Today.Month.ToString("es-MX");
C string dateString =
DateTimeFormatInfo.CurrentInfo
GetMonthName(DateTime.Today.Month);
D DateTimeFormatInfo dtfi = new CultureInfo("es-MX", false). DateTimeFormat; DateTime dt = new DateTime(DateTime.Today.Year,
DateTime.Today.Month, DateTime.Today.Day);
string dateString = dt.ToString(dtfi.LongDatePattern);