[]
Gets the name of the quarter for the specified date and culture.
public static string GetQuarterName(this DateTime date, CultureInfo culture = null)
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. |
Type | Description |
---|---|
string | The name of the quarter, or the quarter number as a string if the culture is not specified or not supported. |