  | QueryModelExtensionsAge Method  | 
 
            Return the age
            
 
    Namespace: 
   SanteDB.Core.Model.Query
    Assembly:
   SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntaxpublic static TimeSpan Age(
	this DateTime me,
	DateTime atDateTime
)
<ExtensionAttribute>
Public Shared Function Age ( 
	me As DateTime,
	atDateTime As DateTime
) As TimeSpan
public:
[ExtensionAttribute]
static TimeSpan Age(
	DateTime me, 
	DateTime atDateTime
)
[<ExtensionAttribute>]
static member Age : 
        me : DateTime * 
        atDateTime : DateTime -> TimeSpan 
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).
RemarksThis exists for the extended query filter only
See Also