Click or drag to resize

QueryModelExtensionsAge Method

Return the age

Namespace:  SanteDB.Core.Model.Query
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static TimeSpan Age(
	this DateTime me,
	DateTime atDateTime
)

Parameters

me
Type: SystemDateTime

[Missing <param name="me"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(System.DateTime,System.DateTime)"]

atDateTime
Type: SystemDateTime

[Missing <param name="atDateTime"/> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(System.DateTime,System.DateTime)"]

Return Value

Type: TimeSpan

[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Age(System.DateTime,System.DateTime)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This exists for the extended query filter only
See Also