DateTime..::..Parse Method (String)
Converts the string representation of a date and time to its DateTime equivalent.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static DateTime Parse( string value )
<TemplateAttribute> _ Public Shared Function Parse ( _ value As String _ ) As DateTime
[TemplateAttribute] public: static DateTime^ Parse( String^ value )
Parameters
- value
- Type: System..::..String
Return Value
An object that is equivalent to the date and time contained in s.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..FormatException | s does not contain a valid string representation of a date and time. |