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.Mvvm.dll

NuGet Package: DevExpress.Maui.Mvvm

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 time 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 parses the specified string successfully; otherwise, false.

See Also