| 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
)
<ExtensionAttribute>
Public Shared Function DateTrunc (
me As DateTime,
precision As String
) As DateTime
public:
[ExtensionAttribute]
static DateTime DateTrunc(
DateTime me,
String^ precision
)
[<ExtensionAttribute>]
static member DateTrunc :
me : DateTime *
precision : string -> DateTime
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