Class DateTimeExtensions
Collection of helper methods for retrieving unique (year-wise) values for some date/time components besides the ones provided by DateTime class.
Inheritance
Inherited Members
Namespace: Telerik.Charting
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public static class DateTimeExtensions
Methods
GetQuarterOfYear(DateTime)
Gets the quarter component of the date represented by the DateTime instance.
Declaration
public static int GetQuarterOfYear(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Int32
|
GetWeekOfYear(DateTime)
Gets the week component of the date represented by the DateTime instance.
Declaration
public static int GetWeekOfYear(DateTime dateTime)
Parameters
System.DateTime
dateTime
|
Returns
System.Int32
|