Version

Quarter(DateTime,String) Method

Builds the name of quarter from date.
Syntax
'Declaration
 
Public Overloads Shared Function Quarter( _
   ByVal dateTime As Date, _
   ByVal quarterFormat As String _
) As String
public static string Quarter( 
   DateTime dateTime,
   string quarterFormat
)

Parameters

dateTime
The original System.DateTime instance.
quarterFormat
The format string. Use {0} for year, {1} for semester and {2} for quarter location.

Return Value

Formated quarter name.
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