ModelBaseCalculateAge(NullableDateOnly) Method

Calculate the current age based on a DateOnly value.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static int? CalculateAge(
	DateOnly? date
)

Parameters

date  NullableDateOnly
Date to use.

Return Value

NullableInt32
is returned if no date is provided.

See Also