.NET Helper Packages
C#
Show/Hide TOC
Model
Base
Calculate
Age(Nullable
Date
Time
) Method
Calculate the current age based on a DateTime value.
Definition
Namespace:
Common.Core.Classes
Assembly:
Common.Core (in Common.Core.dll) Version: 2.1.5
C#
Copy
public
static
int
?
CalculateAge
(
DateTime
?
date
)
Parameters
date
Nullable
DateTime
Date to use.
Return Value
Nullable
Int32
is returned if no date is provided.
See Also
Reference
ModelBase Class
CalculateAge Overload
Common.Core.Classes Namespace
In This Article
Definition
Parameters
Return Value
See Also