Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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