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

DateTimePeriod.CreateNextMonths(String, Int32) Method

Creates the period whose duration is the specified number of months. The period includes the months after the current month.

Namespace: DevExpress.DashboardCommon

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

Declaration

public static DateTimePeriod CreateNextMonths(
    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 months.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateNextMonths(String, Int32) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also