ClassCalendarHelper
Holds helper methods for date and time operations.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public static class CalendarHelper
Inheritance: objectCalendarHelper
Methods
GetDaysOfWeekStartWithFirstDayOfWeek(DayOfWeek)
Gets the days of week start with first day of week.
Declaration
public static IEnumerable<DayOfWeek> GetDaysOfWeekStartWithFirstDayOfWeek(DayOfWeek firstDayOfWeek)
Parameters
firstDayOfWeek
The first day of week.
Returns
Ordered IEnumerable<T>.
GetEndOfMonth(DateTime)
Gets the last date of month for the specified date.
GetEndOfMonth(int, int)
Gets the last date end of the specified month and year.
GetFirstDayOfWeek(DateTime, DayOfWeek)
Gets the first day of week.
GetLastDayOfWeek(DateTime, DayOfWeek)
Gets the last day of week.
GetNamesOfDays(CultureInfo)
Gets the names of days.
Declaration
public static IDictionary<DayOfWeek, string> GetNamesOfDays(CultureInfo culture)
Parameters
culture
The culture.
Returns
IDictionary<DayOfWeek, string>
Dictionary of DayOfWeek, NameOfDay pair.
GetNamesOfMonths(CultureInfo)
Gets the names of months.
Declaration
public static IDictionary<int, string> GetNamesOfMonths(CultureInfo culture)
Parameters
culture
The culture.
Returns
Dictionary of NumberOfMonth, NameOfMonth pair.
GetStartOfMonth(int, int)
Gets the first date of the specified month and year.