DateTimePeriod.CreateLastMonths(String, Int32) Method

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.v18.2.Core.dll

Declaration

public static DateTimePeriod CreateLastMonths(
    string name,
    int count
)
Public Shared Function CreateLastMonths(
    name As String,
    count As Integer
) As DateTimePeriod

Parameters

Type Name Description
String name

A String value that specifies the period name.

Int32 count

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.

See Also