Click or drag to resize

DateTimeExtensionsGetWeekNumber Method

Determines the week number of the given DateTime value using the ISO 8601 specification.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public static int GetWeekNumber(
	this DateTime source
)

Parameters

source
Type: SystemDateTime
The date time of which the week number must be determined.

Return Value

Type: Int32
The determined week number.

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