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 Dim strDate As String = _
DateTime.Today.Month.ToString("es-MX")
B Dim DTFormat As DateTimeFormatInfo = _
New CultureInfo("es-MX", False).DateTimeFormat
Dim DT As New DateTime( _ DateTime.Today.Year,
DateTime.Today.Month, DateTime.Today.Day) Dim strDate As String = _ DT.ToString(DTFormat.LongDatePattern)
C Dim objCalendar As Calendar = _
New CultureInfo("es-MX", False).Calendar
Dim DT As New DateTime( _
DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day) Dim strDate As String = DT. ToString
D Dim strDate As String = _
DateTimeFormatInfo.CurrentInfo.GetMonthName( _
DateTime.Today.Month)