Class
DateTimeExtensions

Collection of helper methods for retrieving unique (year-wise) values for some date/time components besides the ones provided by DateTime class.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

cs-api-definition
public static class DateTimeExtensions

Inheritance: objectDateTimeExtensions

Methods

GetQuarterOfYear(DateTime)

Gets the quarter component of the date represented by the DateTime instance.

Declaration

cs-api-definition
public static int GetQuarterOfYear(DateTime dateTime)

Parameters

dateTime

DateTime

Returns

int

GetWeekOfYear(DateTime)

Gets the week component of the date represented by the DateTime instance.

Declaration

cs-api-definition
public static int GetWeekOfYear(DateTime dateTime)

Parameters

dateTime

DateTime

Returns

int