Share via


BindConverter.TryConvertToDateOnly Method

Definition

Overloads

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

Attempts to convert a value to a DateOnly.

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

Attempts to convert a value to a DateOnly.

TryConvertToDateOnly(Object, CultureInfo, DateOnly)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Attempts to convert a value to a DateOnly.

public static bool TryConvertToDateOnly (object? obj, System.Globalization.CultureInfo? culture, out DateOnly value);
static member TryConvertToDateOnly : obj * System.Globalization.CultureInfo * DateOnly -> bool
Public Shared Function TryConvertToDateOnly (obj As Object, culture As CultureInfo, ByRef value As DateOnly) As Boolean

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
DateOnly

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to

TryConvertToDateOnly(Object, CultureInfo, String, DateOnly)

Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs
Source:
BindConverter.cs

Attempts to convert a value to a DateOnly.

public static bool TryConvertToDateOnly (object? obj, System.Globalization.CultureInfo? culture, string format, out DateOnly value);
static member TryConvertToDateOnly : obj * System.Globalization.CultureInfo * string * DateOnly -> bool
Public Shared Function TryConvertToDateOnly (obj As Object, culture As CultureInfo, format As String, ByRef value As DateOnly) As Boolean

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

format
String

The format string to use in conversion.

value
DateOnly

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to