Click or drag to resize

QueryModelExtensionsDateTrunc Method (DateTime, String)

Gets the date contains function

Namespace:  SanteDB.Core.Model.Query
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static DateTime DateTrunc(
	this DateTime me,
	string precision
)

Parameters

me
Type: SystemDateTime

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

precision
Type: SystemString

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

Return Value

Type: DateTime

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

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