共用方式為


TryParse Method (String, Date)

[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
PublicSharedFunctionTryParse ( _
    dateAsString, _
    <OutAttribute> ByRefresultAsDate _
) AsBoolean
'Usage
DimdateAsStringDimresultAsDateDimreturnValueAsBooleanreturnValue = Date.TryParse(date, _
    result)
publicstaticboolTryParse(
    stringdate,
    outDateresult
)
public:
staticboolTryParse(
    String^ date, 
    [OutAttribute] Date% result
)
publicstaticfunctionTryParse(
    date : String, 
    result : Date
) : boolean

Parameters

Return Value

Type: System. . :: . .Boolean

.NET Framework Security

See Also

Reference

Date Structure

Date Members

TryParse Overload

System Namespace