Method TruncateToMinutes
TruncateToMinutes(DateTimeOffset)
Returns a new System.DateTimeOffset value equivalent to the one provided but with zero second and millsecond components.
Declaration
public static DateTimeOffset TruncateToMinutes(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 seconds and millseconds components of |