Class DateTimeExtensions
Extension methods for System.DateTime
Inheritance
System.Object
DateTimeExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.MetaDataPlus.Extensions
Assembly: Mediachase.MetaDataPlus.dll
Version: 10.8.0Syntax
public static class DateTimeExtensions
Methods
TruncateToSqlDateTimeRange(DateTime)
Truncates a datetime instance so it fits inside the range representable by System.Data.SqlTypes.SqlDateTime
Declaration
public static DateTime TruncateToSqlDateTimeRange(this DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dateTime | The date time. |
Returns
Type | Description |
---|---|
System.DateTime | The truncated date time. |