Skip to main content

DateTimeRange.TryParse(String, CultureInfo, out DateTimeRange) Method

Tries to parse the specified string and convert it into the date-time range.

Namespace: DevExpress.Maui.Scheduler

Assembly: DevExpress.Maui.Scheduler.dll

NuGet Package: DevExpress.Maui.Scheduler

Declaration

public static bool TryParse(
    string input,
    CultureInfo culture,
    out DateTimeRange result
)

Parameters

Name Type Description
input String

The string to parse.

culture CultureInfo

The culture-specific formatting information.

result DateTimeRange

The range generated from the specified string. This parameter is passed uninitialized; the method overrides any value originally supplied in the result.

Returns

Type Description
Boolean

true if the method successfully parses the specified string; otherwise, false.

See Also