Version

CalcDefaultDateMask(IFormatProvider,Boolean) Method

Calculates the default mask for a date based on the specified IFormatProvider implementation, optionally including culture-specific separator/formatting characters.
Syntax
'Declaration
 
Public Overloads Function CalcDefaultDateMask( _
   ByVal formatProvider As IFormatProvider, _
   ByVal useShortDatePattern As Boolean _
) As String
public string CalcDefaultDateMask( 
   IFormatProvider formatProvider,
   bool useShortDatePattern
)

Parameters

formatProvider
Can be a CultureInfo or a DateTimeFormatInfo. If null is specified, the current culture settings are used.
useShortDatePattern
Specifies whether to use only the ShortDatePattern of the specified culture's DateTimeFormatInfo when deriving the mask. If false, culture-specific separator/formatting characters are included.

Return Value

A string representing the default date mask.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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