Click or drag to resize

ExtensionsDateGetWeeksInYear Method

Returns the maximum of the week of the given year

Namespace:  Cauldron
Assembly:  Cauldron (in Cauldron.dll) Version: 3.2.0.2
Syntax
public static int GetWeeksInYear(
	this DateTime dateTime
)

Parameters

dateTime
Type: SystemDateTime
The year to get the maximum weeks.

Return Value

Type: Int32
The maximum week of the given year

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTime. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also