GenericDateTimeToDateOnly Method

Converts a DateTime object to a DateOnly type.

Definition

Namespace: Common.Core.Converters
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static DateOnly? DateTimeToDateOnly(
	Object value
)

Parameters

value  Object
Value to try and convert.

Return Value

NullableDateOnly
is returned if the value could not be converted.

See Also