Class TimeParser
Converts the specified string representation of a time to its DateTime equivalent.
Inheritance
System.Object
TimeParser
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public abstract class TimeParser
Methods
| Improve this Doc View SourceTryParse(String, CultureInfo, out Nullable<DateTime>)
Converts the specified string representation of a time to its DateTime equivalent and returns a value that indicates whether the conversion succeeded.
Declaration
[NotImplemented]
public virtual bool TryParse(string text, CultureInfo culture, out DateTime? result)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text that should be parsed. |
System.Globalization.CultureInfo | culture | The culture being used. |
System.Nullable<System.DateTime> | result | The parsed DateTime. |
Returns
Type | Description |
---|---|
System.Boolean | True if the parse was successful, false if it was not. |