DateTimePeriod.CreateLastMonths(String, Int32) Method
In This Article
Creates the period whose duration is a specified number of months. The period includes the months previous to the current month.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.2.Core.dll
NuGet Package: DevExpress.Dashboard.Core
#Declaration
public static DateTimePeriod CreateLastMonths(
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 |
---|---|
Date |
A Date |
#Remarks
To learn how to specify custom periods, see the description of the DateTimePeriod class.
See Also