TimeSpan.FromDays(Variable) Method

Top 

Description

Creates a TimeSpan from a value of days.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

TimeSpan.FromDays(

Variable days)

 

 

Arguments

days


Description:

The number of days.

Units:

day

Valid Range:

-3652500 ≤ days ≤ 3652500

 

 

 

Return Value

Type:

timespan

Units:

day

 

 

Returns a TimeSpan representing the input number of days.

 

Syntax

myTimeSpan1 = TimeSpan.FromDays(myVariable1);

 

 

See also

TimeSpan Object

TimeSpans Guide

Parsing Dates and Times