Version

DaysPerWeek Property

Returns the number of days considered to be contained within a logical week.
Syntax
'Declaration
 
Public Property DaysPerWeek As TimeSpanDaysPerWeek
public TimeSpanDaysPerWeek DaysPerWeek {get; set;}
Remarks

The DaysPerWeek property can be used to define the number of days in a week for the purposes of formatting and parsing a TimeSpan. For example, if an application deals with workdays and working hours, the developer might set this property to 'Five' to define the logical workweek as five days in duration. The TimeSpanEditor's Parse method would then consider a value of "1 wk" to consist of only five days, rather than seven.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also