[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.RenderingTree.Tools.DateTimeExtension.GetQuarterName

GetQuarterName Method

GetQuarterName(DateTime, CultureInfo)

Gets the name of the quarter for the specified date and culture.

Declaration
public static string GetQuarterName(this DateTime date, CultureInfo culture = null)
Parameters
Type Name Description
DateTime date

The date for which to get the quarter name.

CultureInfo culture

The culture to use for the quarter name. If null, the quarter number is returned.

Returns
Type Description
string

The name of the quarter, or the quarter number as a string if the culture is not specified or not supported.