Share via


BindConverter.TryConvertToNullableDateOnly Method

Definition

Overloads

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

Attempts to convert a value to a nullable DateOnly.

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

Attempts to convert a value to a nullable DateOnly.

TryConvertToNullableDateOnly(Object, CultureInfo, String, Nullable<DateOnly>)

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

Attempts to convert a value to a nullable DateOnly.

public static bool TryConvertToNullableDateOnly (object? obj, System.Globalization.CultureInfo? culture, string format, out DateOnly? value);
static member TryConvertToNullableDateOnly : obj * System.Globalization.CultureInfo * string * Nullable -> bool
Public Shared Function TryConvertToNullableDateOnly (obj As Object, culture As CultureInfo, format As String, ByRef value As Nullable(Of 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
Nullable<DateOnly>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to

TryConvertToNullableDateOnly(Object, CultureInfo, Nullable<DateOnly>)

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

Attempts to convert a value to a nullable DateOnly.

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

Parameters

obj
Object

The object to convert.

culture
CultureInfo

The CultureInfo to use for conversion.

value
Nullable<DateOnly>

The converted value.

Returns

true if conversion is successful, otherwise false.

Applies to