TimeSpan.RoundedToDays() Method

Top 

Description

Returns the TimeSpan rounded to the nearest day.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.RoundedToDays(

)

 

 

Return Value

Type:

timespan

Units:

day

 

 

The value of the rounded TimeSpan.

 

Syntax

myTimeSpan1 = myTimeSpan2.RoundedToDays();

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times