Member group
TryParse
Declaring type: DateTimeExtensions
Namespace: System
Assembly: Raven.Core.dll
Source file: Parse.rvn
Overloads / Variants
TryParse
static func TryParse(input: string?, provider: IFormatProvider?, styles: DateTimeStyles) -> Optional<DateTime>
Source file: Parse.rvn
Extension from DateTimeExtensions.TryParse
Parses a date and time using the specified format provider and styles.
Parameters
| Name | Type | Description |
|---|---|---|
input |
String? | |
provider |
IFormatProvider? | |
styles |
DateTimeStyles |
Return value
Optional<DateTime>
TryParse
static func TryParse(input: string?) -> Optional<DateTime>
Source file: Parse.rvn
Extension from DateTimeExtensions.TryParse
Parses a date and time and returns Some on success or None on failure.
Parameters
| Name | Type | Description |
|---|---|---|
input |
String? |
Return value
Optional<DateTime>