Version

FormatDayOfWeek Method

Returns a formatted string for the specified day of the week.
Syntax
'Declaration
 
Public Overridable Function FormatDayOfWeek( _
   ByVal formatType As DateTimeFormatType, _
   ByVal dayOfWeek As DayOfWeek _
) As String
public virtual string FormatDayOfWeek( 
   DateTimeFormatType formatType,
   DayOfWeek dayOfWeek
)

Parameters

formatType
One of the day of week related values that indicates whether to return the full day name (DayOfWeek), abbreviated (ShortDayOfWeek) or shortest (ShortestDayOfWeek) representation for the day of week.
dayOfWeek
The day of week whose string representation is to be returned.

Return Value

The full, abbreviated or shortest version of the specified day of week.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also