ParseExact Method (String, String, IFormatProvider, DateTimeStyles)
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Namespace: System
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicSharedFunctionParseExact ( _
dateAsString, _
formatAsString, _
providerAsIFormatProvider, _
styleAsDateTimeStyles _
) AsDate
'Usage
DimdateAsStringDimformatAsStringDimproviderAsIFormatProviderDimstyleAsDateTimeStylesDimreturnValueAsDatereturnValue = Date.ParseExact(date, _
format, provider, style)
publicstaticDateParseExact(
stringdate,
stringformat,
IFormatProviderprovider,
DateTimeStylesstyle
)
public:
staticDateParseExact(
String^ date,
String^ format,
IFormatProvider^ provider,
DateTimeStylesstyle
)
publicstaticfunctionParseExact(
date : String,
format : String,
provider : IFormatProvider,
style : DateTimeStyles
) : Date
Parameters
- date
Type: System. . :: . .String
- format
Type: System. . :: . .String
- provider
Type: System. . :: . .IFormatProvider
- style
Type: System.Globalization. . :: . .DateTimeStyles
Return Value
Type: System. . :: . .Date
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).