Class CalendarExtensions
Extension methods for the Calendar
Inherited Members
Namespace: PayrollEngine.Client.Model
Assembly: PayrollEngine.Client.Core.dll
Syntax
public static class CalendarExtensions
Methods
GetWeekOfYear(Calendar, CultureInfo, DateTime)
Returns the week of year for the specified DateTime
Declaration
public static int GetWeekOfYear(this Calendar calendar, CultureInfo culture, DateTime moment)
Parameters
| Type | Name | Description |
|---|---|---|
| Calendar | calendar | The payroll calendar |
| CultureInfo | culture | The culture |
| DateTime | moment | The moment of the week |
Returns
| Type | Description |
|---|---|
| int | The returned value is an integer between 1 and 53 |