StringExtensions..::..ToDateTime Method (String, String, IFormatProvider, DateTimeStyles)

To the date time.

Namespace:  MichaelBrandonMorris.Extensions.PrimitiveExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrimitiveExtensions (in MichaelBrandonMorris.Extensions.PrimitiveExtensions.dll)

Syntax


public static DateTime ToDateTime(
	string s,
	string format,
	IFormatProvider provider,
	DateTimeStyles style
)
Public Shared Function ToDateTime ( _
	s As String, _
	format As String, _
	provider As IFormatProvider, _
	style As DateTimeStyles _
) As DateTime
public:
static DateTime^ ToDateTime(
	String^ s, 
	String^ format, 
	IFormatProvider^ provider, 
	DateTimeStyles^ style
)

Parameters

s
Type: String
The s.
format
Type: String
The format.
provider
Type: IFormatProvider
The provider.
style
Type: DateTimeStyles
The style.

Return Value

DateTime.