You are developing a fiscal report for Braindumps.biz. Braindumps.biz has a main office in the
United States and a satellite office in the UK.
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 DTFormat As DateTimeFormatInfo = _ New CultureInfo("es-MX",
False).DateTimeFormatDim DT As New DateTime( _ DateTime.Today.Year,
DateTime.Today.Month, DateTime.Today.Day)Dim strDate As String = _
DT.ToString(DTFormat.LongDatePattern)
B. Dim objCalendar As Calendar = _ New CultureInfo("es-MX", False).CalendarDim DT As New
DateTime( _ DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day)Dim
strDate As String = DT.ToString
C. Dim strDate As String = _ DateTimeFormatInfo.CurrentInfo.GetMonthName( _
DateTime.Today.Month)
D. Dim strDate As String = _ DateTime.Today.Month.ToString("es-MX")
Answer: A
United States and a satellite office in the UK.
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 DTFormat As DateTimeFormatInfo = _ New CultureInfo("es-MX",
False).DateTimeFormatDim DT As New DateTime( _ DateTime.Today.Year,
DateTime.Today.Month, DateTime.Today.Day)Dim strDate As String = _
DT.ToString(DTFormat.LongDatePattern)
B. Dim objCalendar As Calendar = _ New CultureInfo("es-MX", False).CalendarDim DT As New
DateTime( _ DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day)Dim
strDate As String = DT.ToString
C. Dim strDate As String = _ DateTimeFormatInfo.CurrentInfo.GetMonthName( _
DateTime.Today.Month)
D. Dim strDate As String = _ DateTime.Today.Month.ToString("es-MX")
Answer: A
No comments:
Post a Comment