Version

Month(DateTime,String) Method

Build the name of month from date.
Syntax
'Declaration
 
Public Overloads Shared Function Month( _
   ByVal dateTime As Date, _
   ByVal monthFormat As String _
) As String
public static string Month( 
   DateTime dateTime,
   string monthFormat
)

Parameters

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

Return Value

Formated month 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