Skip to main content
A newer version of this page is available. .

DateTimePeriod.CreateLastYears(String, Int32) Method

Creates the period whose duration is the specified number of years. The period includes the years previous to the current year.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.1.Core.dll

Declaration

public static DateTimePeriod CreateLastYears(
    string name,
    int count
)

Parameters

Name Type Description
name String

A String value that specifies the period name.

count Int32

An integer value that specifies the number of years.

Returns

Type Description
DateTimePeriod

A DateTimePeriod object that is the created period.

Remarks

To learn how to specify custom periods, see the description of the DateTimePeriod class.

See Also