Click or drag to resize

QueryModelExtensionsDifference Method (DateTime, DateTime)

Calculate the difference between two dates

Namespace:  SanteDB.Core.Model.Query
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static TimeSpan Difference(
	this DateTime source,
	DateTime target
)

Parameters

source
Type: SystemDateTime

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

target
Type: SystemDateTime

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

Return Value

Type: TimeSpan

[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.QueryModelExtensions.Difference(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).
See Also