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