Method TruncateToHours
TruncateToHours(DateTimeOffset)
Returns a new System.DateTimeOffset value equivalent to the one provided but with zero minute, second, and millsecond components.
Declaration
public static DateTimeOffset TruncateToHours(this DateTimeOffset value)
Parameters
Type | Name | Description |
---|---|---|
System.DateTimeOffset | value | The System.DateTimeOffset value to truncate. |
Returns
Type | Description |
---|---|
System.DateTimeOffset | A new System.DateTimeOffset missing the minutes, seconds and millseconds components of |