DateTimeFormatInfo.GetAbbreviatedDayName(DayOfWeek) Метод

Определение

Returns the culture-specific abbreviated name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.Returns the culture-specific abbreviated name of the specified day of the week based on the culture associated with the current DateTimeFormatInfo object.

public:
 System::String ^ GetAbbreviatedDayName(DayOfWeek dayofweek);
public string GetAbbreviatedDayName (DayOfWeek dayofweek);
member this.GetAbbreviatedDayName : DayOfWeek -> string
Public Function GetAbbreviatedDayName (dayofweek As DayOfWeek) As String

Параметры

dayofweek
DayOfWeek

A DayOfWeek value.A DayOfWeek value.

Возвращаемое значение

The culture-specific abbreviated name of the day of the week represented by dayofweek.The culture-specific abbreviated name of the day of the week represented by dayofweek.

Исключения

dayofweek is not a valid DayOfWeek value.dayofweek is not a valid DayOfWeek value.

Комментарии

Для объекта инвариантного DateTimeFormatInfo по умолчанию этот метод возвращает строку из GregorianCalendar:For the default invariant DateTimeFormatInfo object, this method returns a string from the GregorianCalendar:

dayofweek Возвращаемое значениеReturn Value
ВоскресеньеSunday Воскресенье"Sun"
понедельникMonday Понедельник"Mon"
ВторникTuesday Вторник"Tue"
средаWednesday СР"Wed"
ЧетвергThursday Четверг"Thu"
ПятницаFriday Будни"Fri"
СубботаSaturday Кот"Sat"

Применяется к

Дополнительно