Version

Parse(String,IFormatProvider,DateTimeStyles) Method

Converts the requested string representation of a date and time into its SmartDate equivalent using the user-provided, culture-specific format information and style.
Syntax
'Declaration
 
Public Overloads Shared Function Parse( _
   ByVal s As String, _
   ByVal provider As IFormatProvider, _
   ByVal styles As DateTimeStyles _
) As SmartDate
public static SmartDate Parse( 
   string s,
   IFormatProvider provider,
   DateTimeStyles styles
)

Parameters

s
A string representation of the date and time to convert to.
provider
Custom formatting provider supplied by the application.
styles
Custom formatting styles supplied by the application.

Return Value

A SmartDate equivalent to the date and time described by s using formatting information provided by provider and the formatting styles identified by the styles argument.
Requirements

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