Show / Hide Table of Contents

Class CalendarExtensions

Extension methods for the Calendar

Inheritance
object
CalendarExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

☀
☾
Back to top Generated by DocFX