New to Telerik UI for WinFormsStart a free 30-day trial

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.WinControls.ChartView.dll

Syntax:

C#
public static class DateTimeExtensions

Inheritance: objectDateTimeExtensions

Methods

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

C#
public static int GetQuarterOfYear(DateTime dateTime)
Parameters:dateTimeDateTimeReturns:

int

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

C#
public static int GetWeekOfYear(DateTime dateTime)
Parameters:dateTimeDateTimeReturns:

int